5083ee08a2
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, fetchFromGitHub
|
|
, mypy
|
|
, pyjwt
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, responses
|
|
, six
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "globus-sdk";
|
|
version = "3.12.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "globus";
|
|
repo = "globus-sdk-python";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-p5GsJRoOG1vV3+efHDUFdIkfXe75HvjI3h5mveFak/M=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cryptography
|
|
requests
|
|
pyjwt
|
|
] ++ lib.optionals (pythonOlder "3.10") [
|
|
typing-extensions
|
|
];
|
|
|
|
checkInputs = [
|
|
mypy
|
|
pytestCheckHook
|
|
responses
|
|
six
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "pyjwt[crypto]>=2.0.0,<3.0.0" "pyjwt[crypto]>=2.0.0,<3.0.0"
|
|
'';
|
|
|
|
pytestFlagsArray = [
|
|
"-W"
|
|
"ignore::DeprecationWarning"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"globus_sdk"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Interface to Globus REST APIs, including the Transfer API and the Globus Auth API";
|
|
homepage = "https://github.com/globus/globus-sdk-python";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ixxie ];
|
|
};
|
|
}
|