systemd: add missing patch for Musl
[NixPkgs.git] / pkgs / development / python-modules / globus-sdk / default.nix
bloba485d3015f6de814b34f63ea289947f4b237670a
2   lib,
3   buildPythonPackage,
4   cryptography,
5   fetchFromGitHub,
6   flaky,
7   pyjwt,
8   pytestCheckHook,
9   pythonOlder,
10   requests,
11   responses,
12   setuptools,
13   typing-extensions,
16 buildPythonPackage rec {
17   pname = "globus-sdk";
18   version = "3.50.0";
19   pyproject = true;
21   disabled = pythonOlder "3.7";
23   src = fetchFromGitHub {
24     owner = "globus";
25     repo = "globus-sdk-python";
26     tag = version;
27     hash = "sha256-gjctcpaV9L8x4ubS4Ox6kyNG7/kl7tZt9c9/7SWVXkg=";
28   };
30   build-system = [ setuptools ];
32   preCheck = ''
33     export HOME=$(mktemp -d)
34   '';
36   dependencies = [
37     cryptography
38     requests
39     pyjwt
40   ] ++ lib.optionals (pythonOlder "3.10") [ typing-extensions ];
42   nativeCheckInputs = [ pytestCheckHook ];
44   checkInputs = [
45     flaky
46     responses
47   ];
49   pythonImportsCheck = [ "globus_sdk" ];
51   meta = {
52     description = "Interface to Globus REST APIs, including the Transfer API and the Globus Auth API";
53     homepage = "https://github.com/globus/globus-sdk-python";
54     changelog = "https://github.com/globus/globus-sdk-python/releases/tag/${version}";
55     license = lib.licenses.asl20;
56     maintainers = with lib.maintainers; [ bot-wxt1221 ];
57   };