From 109351ef381480ff0bfac548c0dd5dea53c3799e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Aug 2024 15:59:22 +0200 Subject: [PATCH 1/2] python312Packages.requests-ratelimiter: 0.6.0 -> 0.7.0 Diff: https://github.com/JWCook/requests-ratelimiter/compare/refs/tags/v0.6.0...v0.7.0 Changelog: https://github.com/JWCook/requests-ratelimiter/blob/refs/tags/v0.7.0/HISTORY.md --- .../requests-ratelimiter/default.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/requests-ratelimiter/default.nix b/pkgs/development/python-modules/requests-ratelimiter/default.nix index 11d85a560525f..8c95037aef9ae 100644 --- a/pkgs/development/python-modules/requests-ratelimiter/default.nix +++ b/pkgs/development/python-modules/requests-ratelimiter/default.nix @@ -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; From f28c82563ce1c8dfb365ac2b8508649502920b0f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Aug 2024 16:22:22 +0200 Subject: [PATCH 2/2] python312Packages.clize: refactor --- .../python-modules/clize/default.nix | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/clize/default.nix b/pkgs/development/python-modules/clize/default.nix index fdd26fa0fd5e8..2de988250dbbc 100644 --- a/pkgs/development/python-modules/clize/default.nix +++ b/pkgs/development/python-modules/clize/default.nix @@ -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"; @@ -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 ]; @@ -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 = [ ]; };