1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, requests
5, pyjwt
6, pytestCheckHook
7, responses
8}:
9
10buildPythonPackage rec {
11 pname = "globus-sdk";
12 version = "2.0.1";
13
14 src = fetchFromGitHub {
15 owner = "globus";
16 repo = "globus-sdk-python";
17 rev = version;
18 sha256 = "1kqnr50iwcq9nx40lblbqzf327cdcbkrir6vh70067hk33rq0gm9";
19 };
20
21 propagatedBuildInputs = [
22 requests
23 pyjwt
24 ];
25
26 checkInputs = [
27 pytestCheckHook
28 responses
29 ];
30
31 postPatch = ''
32 substituteInPlace setup.py \
33 --replace "pyjwt[crypto]>=1.5.3,<2.0.0" "pyjwt[crypto] >=1.5.3, <3.0.0"
34 '';
35
36 pythonImportsCheck = [ "globus_sdk" ];
37
38 meta = with lib; {
39 description = "A convenient Pythonic interface to Globus REST APIs, including the Transfer API and the Globus Auth API";
40 homepage = "https://github.com/globus/globus-sdk-python";
41 license = licenses.asl20;
42 maintainers = with maintainers; [ ixxie ];
43 };
44}