Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python312Packages.requests-ratelimiter: 0.6.0 -> 0.7.0 #333913

Merged
merged 2 commits into from
Aug 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions pkgs/development/python-modules/clize/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
fetchPypi,
od,
pygments,
pytestCheckHook,
pythonOlder,
python-dateutil,
pythonOlder,
repeated-test,
setuptools-scm,
sigtools,
unittestCheckHook,
}:

buildPythonPackage rec {
pname = "clize";
version = "5.0.2";
format = "pyproject";
pyproject = true;

disabled = pythonOlder "3.7";

Expand All @@ -26,23 +26,23 @@ buildPythonPackage rec {
hash = "sha256-BH9aRHNgJxirG4VnKn4VMDOHF41agcJ13EKd+sHstRA=";
};

nativeBuildInputs = [ setuptools-scm ];
build-system = [ setuptools-scm ];

propagatedBuildInputs = [
dependencies = [
attrs
docutils
od
sigtools
];

passthru.optional-dependencies = {
optional-dependencies = {
datetime = [ python-dateutil ];
};

nativeCheckInputs = [
pytestCheckHook
python-dateutil
pygments
unittestCheckHook
python-dateutil
repeated-test
];

Expand All @@ -51,6 +51,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Command-line argument parsing for Python";
homepage = "https://github.com/epsy/clize";
changelog = "https://github.com/epsy/clize/releases/tag/v${version}";
license = licenses.mit;
maintainers = [ ];
};
Expand Down
17 changes: 11 additions & 6 deletions pkgs/development/python-modules/requests-ratelimiter/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,44 @@
fetchFromGitHub,
poetry-core,
pyrate-limiter,
requests,
pytestCheckHook,
pythonOlder,
requests-mock,
requests,
requests-cache,
}:

buildPythonPackage rec {
pname = "requests-ratelimiter";
version = "0.6.0";
version = "0.7.0";
pyproject = true;

disabled = pythonOlder "3.7";

src = fetchFromGitHub {
owner = "JWCook";
repo = "requests-ratelimiter";
rev = "refs/tags/v${version}";
hash = "sha256-ctCD+vlV90KCO7DdPUZJipBC/lz6NXx0gYuHHrs22IY=";
hash = "sha256-DS4BzS8AD4axniyV6jVYXWZ6cQLvMPp8tdGoBhYu51o=";
};

nativeBuildInputs = [ poetry-core ];
build-system = [ poetry-core ];

propagatedBuildInputs = [
dependencies = [
pyrate-limiter
requests
];

nativeCheckInputs = [
pytestCheckHook
requests-cache
requests-mock
];

pythonImportsCheck = [ "requests_ratelimiter" ];

meta = with lib; {
description = "Easy rate-limiting for python requests";
description = "Module for rate-limiting for requests";
homepage = "https://github.com/JWCook/requests-ratelimiter";
changelog = "https://github.com/JWCook/requests-ratelimiter/blob/${src.rev}/HISTORY.md";
license = licenses.mit;
Expand Down