nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 cryptography,
5 fetchFromGitHub,
6 flaky,
7 pyjwt,
8 pytestCheckHook,
9 requests,
10 responses,
11 setuptools,
12}:
13
14buildPythonPackage rec {
15 pname = "globus-sdk";
16 version = "4.3.1";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "globus";
21 repo = "globus-sdk-python";
22 tag = version;
23 hash = "sha256-q3fYU8/r6IfoC55iN83jAGdFrhnXx7bTtvuf0R4RBv4=";
24 };
25
26 build-system = [ setuptools ];
27
28 preCheck = ''
29 export HOME=$(mktemp -d)
30 '';
31
32 dependencies = [
33 cryptography
34 requests
35 pyjwt
36 ];
37
38 nativeCheckInputs = [ pytestCheckHook ];
39
40 checkInputs = [
41 flaky
42 responses
43 ];
44
45 pythonImportsCheck = [ "globus_sdk" ];
46
47 meta = {
48 description = "Interface to Globus REST APIs, including the Transfer API and the Globus Auth API";
49 homepage = "https://github.com/globus/globus-sdk-python";
50 changelog = "https://github.com/globus/globus-sdk-python/releases/tag/${src.tag}";
51 license = lib.licenses.asl20;
52 maintainers = with lib.maintainers; [ bot-wxt1221 ];
53 };
54}