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