Merge pull request #159985 from fabaff/fix-globus-sdk

python3Packages.globus-sdk: 3.2.1 -> 3.4.1
This commit is contained in:
Fabian Affolter 2022-02-15 09:22:30 +01:00 committed by GitHub
commit d10d040664
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ];