From e98791a204c49eb0111eef4943083ddee86b6b1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 9 Feb 2024 15:26:45 -0800 Subject: [PATCH] python311Packages.cloudflare: 2.17.0 -> 2.18.1 Changelog: https://github.com/cloudflare/python-cloudflare/blob/2.18.1/CHANGELOG.md --- .../python-modules/cloudflare/default.nix | 25 +++++++++++++------ 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/cloudflare/default.nix b/pkgs/development/python-modules/cloudflare/default.nix index aa65ec7bdaaa..dc8eafe6326f 100644 --- a/pkgs/development/python-modules/cloudflare/default.nix +++ b/pkgs/development/python-modules/cloudflare/default.nix @@ -1,46 +1,55 @@ { lib , buildPythonPackage , fetchPypi -, attrs +, setuptools , requests -, future , pyyaml , jsonlines , pythonOlder +, pytestCheckHook +, pytz }: buildPythonPackage rec { pname = "cloudflare"; - version = "2.17.0"; - format = "setuptools"; + version = "2.18.1"; + pyproject = true; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-B2jTIYRKrMu+PXf3zifxW5NW3/rIHqlPrgErObuO6D4="; + hash = "sha256-dTD9HO26elFdfNMJxlyK1jKf4xWcz98/XrKI3EpUSsc="; }; + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ - attrs requests - future pyyaml jsonlines ]; - # no tests associated with package + # tests require networking doCheck = false; pythonImportsCheck = [ "CloudFlare" ]; + nativeCheckInputs = [ + pytestCheckHook + pytz + ]; + meta = with lib; { description = "Python wrapper for the Cloudflare v4 API"; homepage = "https://github.com/cloudflare/python-cloudflare"; changelog = "https://github.com/cloudflare/python-cloudflare/blob/${version}/CHANGELOG.md"; license = licenses.mit; + mainProgram = "cli4"; maintainers = with maintainers; [ ]; }; }