a6d62be0d1
GitOrigin-RevId: ac169ec6371f0d835542db654a65e0f2feb07838
43 lines
866 B
Nix
43 lines
866 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, substituteAll
|
|
, krb5Full
|
|
, findutils
|
|
, which
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "k5test";
|
|
version = "0.10.1";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "2c9181133f3d52c8e29a5ba970b668273c08f855e5da834aaee2ea9efeb6b069";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./fix-paths.patch;
|
|
inherit findutils krb5Full;
|
|
# krb5-config is in dev output
|
|
krb5FullDev = krb5Full.dev;
|
|
which = "${which}/bin/which";
|
|
})
|
|
];
|
|
|
|
# No tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "k5test" ];
|
|
|
|
meta = with lib; {
|
|
description = "Library for setting up self-contained Kerberos 5 environment";
|
|
homepage = "https://github.com/pythongssapi/k5test";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|