about summary refs log tree commit diff
path: root/pkgs/development/python-modules/python-etcd
diff options
context:
space:
mode:
authorChris Ostrouchov <chris.ostrouchov@gmail.com>2018-10-26 11:45:27 -0400
committerFrederik Rietdijk <fridh@fridh.nl>2018-10-27 09:07:22 +0200
commit31e46d9d1c39d25b5cac57d0d0d1ba6550676e67 (patch)
treec7114eb932817efdb52350134a535c2c7128788d /pkgs/development/python-modules/python-etcd
parent952f5b808ba042f0a0591b5c027200fe44b72244 (diff)
pythonPackages.python-etcd: refactor move to python-modules
Diffstat (limited to 'pkgs/development/python-modules/python-etcd')
-rw-r--r--pkgs/development/python-modules/python-etcd/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-etcd/default.nix b/pkgs/development/python-modules/python-etcd/default.nix
new file mode 100644
index 0000000000000..d1780fc782b58
--- /dev/null
+++ b/pkgs/development/python-modules/python-etcd/default.nix
@@ -0,0 +1,37 @@
+{ stdenv
+, buildPythonPackage
+, fetchPypi
+, nose
+, mock
+, pyopenssl
+, urllib3
+, dnspython
+}:
+
+buildPythonPackage rec {
+  pname = "python-etcd";
+  version = "0.4.3";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "cf53262b3890d185fe637eed15fe39c8d7a8261864ddcd7037b22c961456d7fc";
+  };
+
+  buildInputs = [ nose mock pyopenssl ];
+
+  propagatedBuildInputs = [ urllib3 dnspython ];
+
+  postPatch = ''
+    sed -i '19s/dns/"dnspython"/' setup.py
+  '';
+
+  # Some issues with etcd not in path even though most tests passed
+  doCheck = false;
+
+  meta = with stdenv.lib; {
+    description = "A python client for Etcd";
+    homepage = https://github.com/jplana/python-etcd;
+    license = licenses.mit;
+  };
+
+}