depot/third_party/nixpkgs/pkgs/development/python-modules/stups-tokens/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

40 lines
808 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
setuptools,
requests,
mock,
pytestCheckHook,
isPy3k,
}:
buildPythonPackage rec {
pname = "stups-tokens";
version = "1.1.19";
pyproject = true;
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "zalando-stups";
repo = "python-tokens";
rev = version;
sha256 = "09z3l3xzdlwpivbi141gk1k0zd9m75mjwbdy81zc386rr9k8s0im";
};
build-system = [ setuptools ];
dependencies = [ requests ];
nativeCheckInputs = [
mock
pytestCheckHook
];
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 ];
};
}