From e4b0bbb36e6251dcbd51fec429b87ee0cef590cc Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 14 Feb 2022 14:00:26 +0100 Subject: [PATCH] python3Packages.globus-sdk: 3.2.1 -> 3.4.1 --- .../python-modules/globus-sdk/default.nix | 30 +++++++++++++++---- 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/globus-sdk/default.nix b/pkgs/development/python-modules/globus-sdk/default.nix index 91c959e87c5e..dc229b0da277 100644 --- a/pkgs/development/python-modules/globus-sdk/default.nix +++ b/pkgs/development/python-modules/globus-sdk/default.nix @@ -1,42 +1,60 @@ { lib , buildPythonPackage +, cryptography , fetchFromGitHub -, requests +, mypy , pyjwt , pytestCheckHook +, pythonOlder +, requests , responses +, typing-extensions }: buildPythonPackage rec { pname = "globus-sdk"; - version = "3.2.1"; + version = "3.4.1"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "globus"; repo = "globus-sdk-python"; rev = version; - sha256 = "12zza78qydkgzqg3j9428g92v7bb55nrwvl5m2il96z39darh7v8"; + hash = "sha256-0TXBw2ZTZwPzuGnWda26MiK5V5oU85PoGAsn7uJw6fk="; }; propagatedBuildInputs = [ + cryptography requests pyjwt + ] ++ lib.optionals (pythonOlder "3.10") [ + typing-extensions ]; checkInputs = [ + mypy pytestCheckHook responses ]; postPatch = '' substituteInPlace setup.py \ - --replace "pyjwt[crypto]>=1.5.3,<2.0.0" "pyjwt[crypto] >=1.5.3, <3.0.0" + --replace "pyjwt[crypto]>=2.0.0,<3.0.0" "pyjwt[crypto]>=2.0.0,<3.0.0" ''; - pythonImportsCheck = [ "globus_sdk" ]; + pytestFlagsArray = [ + "-W" + "ignore::DeprecationWarning" + ]; + + pythonImportsCheck = [ + "globus_sdk" + ]; meta = with lib; { - description = "A convenient Pythonic interface to Globus REST APIs, including the Transfer API and the Globus Auth API"; + description = "Interface to Globus REST APIs, including the Transfer API and the Globus Auth API"; homepage = "https://github.com/globus/globus-sdk-python"; license = licenses.asl20; maintainers = with maintainers; [ ixxie ];