summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-02-14 14:00:26 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2022-02-14 14:00:26 +0100
commite4b0bbb36e6251dcbd51fec429b87ee0cef590cc (patch)
tree8380825adecdaf8f8fcf773550306da97b42e801
parentc3a5c4942921c86559ba8542259bbecdcacaeac9 (diff)
downloadnixpkgs-e4b0bbb36e6251dcbd51fec429b87ee0cef590cc.tar
nixpkgs-e4b0bbb36e6251dcbd51fec429b87ee0cef590cc.tar.gz
nixpkgs-e4b0bbb36e6251dcbd51fec429b87ee0cef590cc.tar.bz2
nixpkgs-e4b0bbb36e6251dcbd51fec429b87ee0cef590cc.tar.lz
nixpkgs-e4b0bbb36e6251dcbd51fec429b87ee0cef590cc.tar.xz
nixpkgs-e4b0bbb36e6251dcbd51fec429b87ee0cef590cc.tar.zst
nixpkgs-e4b0bbb36e6251dcbd51fec429b87ee0cef590cc.zip
python3Packages.globus-sdk: 3.2.1 -> 3.4.1
-rw-r--r--pkgs/development/python-modules/globus-sdk/default.nix30
1 files 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 91c959e87c5..dc229b0da27 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 ];