2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
buildPythonPackage,
|
|
|
|
requests,
|
|
|
|
mock,
|
|
|
|
pytest,
|
|
|
|
pytest-cov,
|
|
|
|
isPy3k,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "stups-tokens";
|
|
|
|
version = "1.1.19";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zalando-stups";
|
|
|
|
repo = "python-tokens";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "09z3l3xzdlwpivbi141gk1k0zd9m75mjwbdy81zc386rr9k8s0im";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ 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
|
|
|
|
pytest
|
2021-07-24 12:14:16 +00:00
|
|
|
pytest-cov
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Python library that keeps OAuth 2.0 service access tokens in memory for your usage.";
|
|
|
|
homepage = "https://github.com/zalando-stups/python-tokens";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.mschuwalow ];
|
|
|
|
};
|
|
|
|
}
|