1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 setuptools, 6 requests, 7 mock, 8 pytestCheckHook, 9 isPy3k, 10}: 11 12buildPythonPackage rec { 13 pname = "stups-tokens"; 14 version = "1.1.19"; 15 pyproject = true; 16 disabled = !isPy3k; 17 18 src = fetchFromGitHub { 19 owner = "zalando-stups"; 20 repo = "python-tokens"; 21 rev = version; 22 sha256 = "09z3l3xzdlwpivbi141gk1k0zd9m75mjwbdy81zc386rr9k8s0im"; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ requests ]; 28 29 nativeCheckInputs = [ 30 mock 31 pytestCheckHook 32 ]; 33 34 meta = with lib; { 35 description = "Python library that keeps OAuth 2.0 service access tokens in memory for your usage"; 36 homepage = "https://github.com/zalando-stups/python-tokens"; 37 license = licenses.asl20; 38 maintainers = [ maintainers.mschuwalow ]; 39 }; 40}