mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-08 05:03:40 +00:00
![Guillaume Girol](/assets/img/avatar_default.png)
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
64 lines
1.3 KiB
Nix
64 lines
1.3 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, fetchFromGitHub
|
|
, mypy
|
|
, pyjwt
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, responses
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "globus-sdk";
|
|
version = "3.15.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "globus";
|
|
repo = "globus-sdk-python";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-qxqGfbrnMvmjbBD7l8OtGKx7WJr65Jbd9y5IyZDXwW4=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cryptography
|
|
requests
|
|
pyjwt
|
|
] ++ lib.optionals (pythonOlder "3.10") [
|
|
typing-extensions
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mypy
|
|
pytestCheckHook
|
|
responses
|
|
];
|
|
|
|
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";
|
|
changelog = "https://github.com/globus/globus-sdk-python/releases/tag/${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ixxie ];
|
|
};
|
|
}
|