depot/third_party/nixpkgs/pkgs/development/python-modules/stups-tokens/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

39 lines
788 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 = "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 ];
};
}