@@ -11,7 +11,13 @@ buildPythonPackage rec {
1111 sha256 = "1q6ccpz6anl9vggwxdq32wp6xjh2lyfbf7av6jqnmvmyqdfwh3b9";
1212 };
1313
14− LD_LIBRARY_PATH="${pkgs.krb5Full}/lib";
14+ # It's used to locate headers
15+ postPatch = ''
16+ substituteInPlace setup.py \
17+ --replace "get_output('krb5-config gssapi --prefix')" "'${lib.getDev krb5Full}'"
18+ '';
19+
20+ LD_LIBRARY_PATH = "${pkgs.krb5Full}/lib";
1521
1622 buildInputs = [ krb5Full which nose shouldbe ]
1723 ++ ( if stdenv.isDarwin then [ darwin.apple_sdk.frameworks.GSS ] else [ gss ] );