2018-01-20 14:32:04 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-02-08 01:42:00 +01:00
|
|
|
, fetchFromGitHub
|
2018-01-20 14:32:04 +01:00
|
|
|
, requests
|
|
|
|
, pyjwt
|
2021-02-08 01:42:00 +01:00
|
|
|
, pytestCheckHook
|
|
|
|
, responses
|
2018-01-20 14:32:04 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "globus-sdk";
|
2021-02-06 02:05:21 +01:00
|
|
|
version = "2.0.1";
|
2018-01-20 14:32:04 +01:00
|
|
|
|
2021-02-08 01:42:00 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "globus";
|
|
|
|
repo = "globus-sdk-python";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1kqnr50iwcq9nx40lblbqzf327cdcbkrir6vh70067hk33rq0gm9";
|
2018-01-20 14:32:04 +01:00
|
|
|
};
|
|
|
|
|
2021-02-08 01:42:00 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
pyjwt
|
|
|
|
];
|
2018-01-20 14:32:04 +01:00
|
|
|
|
2021-02-08 01:42:00 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
responses
|
|
|
|
];
|
2020-08-25 04:07:09 +02:00
|
|
|
|
2021-05-09 14:33:48 +02:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "pyjwt[crypto]>=1.5.3,<2.0.0" "pyjwt[crypto] >=1.5.3, <3.0.0"
|
|
|
|
'';
|
|
|
|
|
2021-02-08 01:42:00 +01:00
|
|
|
pythonImportsCheck = [ "globus_sdk" ];
|
2020-08-25 04:07:09 +02:00
|
|
|
|
2018-01-20 14:32:04 +01:00
|
|
|
meta = with lib; {
|
2021-02-08 01:42:00 +01:00
|
|
|
description = "A convenient Pythonic interface to Globus REST APIs, including the Transfer API and the Globus Auth API";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/globus/globus-sdk-python";
|
2018-01-20 14:32:04 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ixxie ];
|
|
|
|
};
|
|
|
|
}
|