depot/third_party/nixpkgs/pkgs/development/python-modules/stups-tokens/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

39 lines
785 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
requests,
mock,
pytest,
pytest-cov,
isPy3k,
}:
buildPythonPackage rec {
pname = "stups-tokens";
version = "1.1.19";
format = "setuptools";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "zalando-stups";
repo = "python-tokens";
rev = version;
sha256 = "09z3l3xzdlwpivbi141gk1k0zd9m75mjwbdy81zc386rr9k8s0im";
};
propagatedBuildInputs = [ requests ];
nativeCheckInputs = [
mock
pytest
pytest-cov
];
meta = with lib; {
description = "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 ];
};
}