2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-02-20 05:27:41 +00:00
|
|
|
, cryptography
|
2021-02-13 14:23:35 +00:00
|
|
|
, fetchFromGitHub
|
2022-02-20 05:27:41 +00:00
|
|
|
, mypy
|
2020-04-24 23:36:52 +00:00
|
|
|
, pyjwt
|
2021-02-13 14:23:35 +00:00
|
|
|
, pytestCheckHook
|
2022-02-20 05:27:41 +00:00
|
|
|
, pythonOlder
|
|
|
|
, requests
|
2021-02-13 14:23:35 +00:00
|
|
|
, responses
|
2022-02-20 05:27:41 +00:00
|
|
|
, typing-extensions
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "globus-sdk";
|
2022-11-27 09:42:12 +00:00
|
|
|
version = "3.15.0";
|
2022-02-20 05:27:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "globus";
|
|
|
|
repo = "globus-sdk-python";
|
2022-04-15 01:41:22 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-11-27 09:42:12 +00:00
|
|
|
hash = "sha256-g4QdVxZmlr4iVL0n/XG+dKm5CCjKO4oi5Xw+lgH+xv8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-02-20 05:27:41 +00:00
|
|
|
cryptography
|
2021-02-13 14:23:35 +00:00
|
|
|
requests
|
|
|
|
pyjwt
|
2022-02-20 05:27:41 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.10") [
|
|
|
|
typing-extensions
|
2021-02-13 14:23:35 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
checkInputs = [
|
2022-02-20 05:27:41 +00:00
|
|
|
mypy
|
2021-02-13 14:23:35 +00:00
|
|
|
pytestCheckHook
|
|
|
|
responses
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2022-02-20 05:27:41 +00:00
|
|
|
--replace "pyjwt[crypto]>=2.0.0,<3.0.0" "pyjwt[crypto]>=2.0.0,<3.0.0"
|
2021-05-20 23:08:51 +00:00
|
|
|
'';
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"-W"
|
|
|
|
"ignore::DeprecationWarning"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"globus_sdk"
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2022-02-20 05:27:41 +00:00
|
|
|
description = "Interface to Globus REST APIs, including the Transfer API and the Globus Auth API";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/globus/globus-sdk-python";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/globus/globus-sdk-python/releases/tag/${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ixxie ];
|
|
|
|
};
|
|
|
|
}
|