Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 43 lines 796 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, substituteAll 5, six 6, krb5Full 7, findutils 8, which 9}: 10 11buildPythonPackage rec { 12 pname = "k5test"; 13 version = "0.9.2"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "1lqp3jgfngyhaxjgj3n230hn90wsylwilh120yjf62h7b1s02mh8"; 18 }; 19 20 patches = [ 21 (substituteAll { 22 src = ./fix-paths.patch; 23 inherit findutils krb5Full; 24 # krb5-config is in dev output 25 krb5FullDev = krb5Full.dev; 26 which = "${which}/bin/which"; 27 }) 28 ]; 29 30 propagatedBuildInputs = [ 31 six 32 ]; 33 34 # No tests 35 doCheck = false; 36 37 meta = with lib; { 38 description = "Library for setting up self-contained Kerberos 5 environment"; 39 homepage = https://github.com/pythongssapi/k5test; 40 license = licenses.mit; 41 maintainers = [ ]; 42 }; 43}