Files
nixpkgs/pkgs/development/python-modules/globus-sdk/default.nix
T

57 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
cryptography,
fetchFromGitHub,
flaky,
pyjwt,
pytestCheckHook,
requests,
responses,
setuptools,
}:
buildPythonPackage rec {
pname = "globus-sdk";
version = "4.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "globus";
repo = "globus-sdk-python";
tag = version;
hash = "sha256-q3fYU8/r6IfoC55iN83jAGdFrhnXx7bTtvuf0R4RBv4=";
};
build-system = [ setuptools ];
preCheck = ''
export HOME=$(mktemp -d)
'';
dependencies = [
cryptography
requests
pyjwt
];
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [ pytestCheckHook ];
checkInputs = [
flaky
responses
];
pythonImportsCheck = [ "globus_sdk" ];
meta = {
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/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ bot-wxt1221 ];
};
}