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
|
2024-05-15 15:35:15 +00:00
|
|
|
, flaky
|
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
|
2024-05-15 15:35:15 +00:00
|
|
|
, setuptools
|
2022-02-20 05:27:41 +00:00
|
|
|
, typing-extensions
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "globus-sdk";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.39.0";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2022-02-20 05:27:41 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
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}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-DjGwwpXzYRq5/hiUs/l8kD/yA58vbhvrKirKDlWoAmY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
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
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-02-13 14:23:35 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
checkInputs = [
|
|
|
|
flaky
|
|
|
|
responses
|
2022-02-20 05:27:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|