1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 fetchpatch, 6 stups-tokens, 7 stups-cli-support, 8 pytest, 9 pytest-cov, 10 isPy3k, 11}: 12 13buildPythonPackage rec { 14 pname = "stups-zign"; 15 version = "1.2"; 16 format = "setuptools"; 17 disabled = !isPy3k; 18 19 src = fetchFromGitHub { 20 owner = "zalando-stups"; 21 repo = "zign"; 22 rev = version; 23 sha256 = "1vk6pnprnd5lfx96hc2c1n7kwh99f260r730x4y2h7lamlv82fh4"; 24 }; 25 26 patches = [ 27 # pytest 5 is currently unsupported. Fetch and apply a pr that resolves this. 28 (fetchpatch { 29 url = "https://github.com/zalando-stups/zign/commit/50140720211e547b0e59f7ddb39a732f0cc73ad7.patch"; 30 sha256 = "1zmyvg1z1asaqqsmxvsx0srvxd6gkgavppvg3dblxwhkml01awqk"; 31 }) 32 ]; 33 34 propagatedBuildInputs = [ 35 stups-tokens 36 stups-cli-support 37 ]; 38 39 preCheck = " 40 export HOME=$TEMPDIR 41 "; 42 43 nativeCheckInputs = [ 44 pytest 45 pytest-cov 46 ]; 47 48 meta = with lib; { 49 description = "OAuth2 token management command line utility."; 50 homepage = "https://github.com/zalando-stups/zign"; 51 license = licenses.asl20; 52 maintainers = [ maintainers.mschuwalow ]; 53 }; 54}