18 buildPythonPackage rec {
21 disabled = pythonOlder "3.6";
23 src = fetchFromGitHub {
24 owner = "pythongssapi";
25 repo = "python-${pname}";
27 sha256 = "sha256-/1YOnG6sCP8G8J3K2/RycTC95rXW9M+U3Mjz4GCt13s=";
30 # It's used to locate headers
32 substituteInPlace setup.py \
33 --replace 'get_output(f"{kc} gssapi --prefix")' '"${lib.getDev krb5Full}"'
41 propagatedBuildInputs = [
46 buildInputs = lib.optionals stdenv.isDarwin [
58 doCheck = pythonOlder "3.8" # `shouldbe` not available
59 && !stdenv.isDarwin; # many failures on darwin
61 # skip tests which fail possibly due to be an upstream issue (see
62 # https://github.com/pythongssapi/python-gssapi/issues/220)
64 # some tests don't respond to being disabled through nosetests -x
65 echo $'\ndel CredsTestCase.test_add_with_impersonate' >> gssapi/tests/test_high_level.py
66 echo $'\ndel TestBaseUtilities.test_acquire_creds_impersonate_name' >> gssapi/tests/test_raw.py
67 echo $'\ndel TestBaseUtilities.test_add_cred_impersonate_name' >> gssapi/tests/test_raw.py
69 export PYTHONPATH="$out/${python.sitePackages}:$PYTHONPATH"
70 nosetests -e 'ext_test_\d.*'
72 pythonImportsCheck = [ "gssapi" ];
75 homepage = "https://pypi.python.org/pypi/gssapi";
76 description = "Python GSSAPI Wrapper";
77 license = licenses.mit;