2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
buildPythonPackage,
|
2024-09-19 14:19:46 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
requests,
|
|
|
|
mock,
|
2024-09-19 14:19:46 +00:00
|
|
|
pytestCheckHook,
|
2024-06-05 15:53:02 +00:00
|
|
|
isPy3k,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "stups-tokens";
|
|
|
|
version = "1.1.19";
|
2024-09-19 14:19:46 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zalando-stups";
|
|
|
|
repo = "python-tokens";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "09z3l3xzdlwpivbi141gk1k0zd9m75mjwbdy81zc386rr9k8s0im";
|
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [ requests ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
mock
|
2024-09-19 14:19:46 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Python library that keeps OAuth 2.0 service access tokens in memory for your usage";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/zalando-stups/python-tokens";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.mschuwalow ];
|
|
|
|
};
|
|
|
|
}
|