summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/gssapi
diff options
context:
space:
mode:
authorThane Gill <me@thanegill.com>2017-12-14 13:50:28 -0800
committerJörg Thalheim <Mic92@users.noreply.github.com>2017-12-14 13:50:28 -0800
commita3b84e03a0a1edc9810d54dc816eb34f3e78a43f (patch)
tree982587c9ca8ffd66466e7b86e9fd4c1465140182 /pkgs/development/python-modules/gssapi
parentMerge pull request #32668 from dtzWill/feature/retdec (diff)
downloadnixpkgs-a3b84e03a0a1edc9810d54dc816eb34f3e78a43f.tar.gz
python.pkgs.gssapi: 1.1.4 -> 1.2.0, (#32681)
- fix for darwin - move to separate module
Diffstat (limited to 'pkgs/development/python-modules/gssapi')
-rw-r--r--pkgs/development/python-modules/gssapi/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/gssapi/default.nix b/pkgs/development/python-modules/gssapi/default.nix
new file mode 100644
index 000000000000..7b90f10338cb
--- /dev/null
+++ b/pkgs/development/python-modules/gssapi/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, pkgs, lib, buildPythonPackage, fetchPypi, six, enum34, decorator,
+nose, shouldbe, gss, krb5Full, which, darwin }:
+
+buildPythonPackage rec {
+ pname = "gssapi";
+ version = "1.2.0";
+ name = "${pname}-${version}";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "1q6ccpz6anl9vggwxdq32wp6xjh2lyfbf7av6jqnmvmyqdfwh3b9";
+ };
+
+ LD_LIBRARY_PATH="${pkgs.krb5Full}/lib";
+
+ buildInputs = [ krb5Full which nose shouldbe ]
+ ++ ( if stdenv.isDarwin then [ darwin.apple_sdk.frameworks.GSS ] else [ gss ] );
+
+ propagatedBuildInputs = [ decorator enum34 six ];
+
+ doCheck = false; # No such file or directory: '/usr/sbin/kadmin.local'
+
+ meta = with stdenv.lib; {
+ homepage = https://pypi.python.org/pypi/gssapi;
+ description = "Python GSSAPI Wrapper";
+ license = licenses.mit;
+ };
+}