17 krb5-c, # C krb5 library, not PyPI krb5
25 buildPythonPackage rec {
30 disabled = pythonOlder "3.6";
32 src = fetchFromGitHub {
33 owner = "pythongssapi";
34 repo = "python-${pname}";
36 hash = "sha256-H1JfdvxJvX5dmC9aTqIOkjAqFEL44KoUXEhoYj2uRY8=";
40 substituteInPlace setup.py \
41 --replace 'get_output(f"{kc} gssapi --prefix")' '"${lib.getDev krb5-c}"'
44 env = lib.optionalAttrs (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) {
45 GSSAPI_SUPPORT_DETECT = "false";
54 dependencies = [ decorator ];
56 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ GSS ];
58 # k5test is marked as broken on darwin
59 doCheck = !stdenv.hostPlatform.isDarwin;
68 mv gssapi/tests $TMPDIR/
76 pythonImportsCheck = [ "gssapi" ];
79 homepage = "https://pypi.python.org/pypi/gssapi";
80 description = "Python GSSAPI Wrapper";
81 license = licenses.mit;