summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel Leathers <sam@appliedtrust.com>2017-09-14 00:29:39 -0400
committerSamuel Leathers <sam@appliedtrust.com>2017-09-14 04:45:45 -0400
commit3f5f208d1390c79bbcb74f52a0e422c1d5ecf2c0 (patch)
treeae273ab4d1bbf3fc256e5832bfd6e69fec4b2b8d
parenta7637b37955f1beacfe6c0b153fb11e086bb4762 (diff)
ws4py: add git to checkInputs
-rw-r--r--pkgs/development/python-modules/ws4py/default.nix26
-rw-r--r--pkgs/top-level/python-packages.nix24
2 files changed, 27 insertions, 23 deletions
diff --git a/pkgs/development/python-modules/ws4py/default.nix b/pkgs/development/python-modules/ws4py/default.nix
new file mode 100644
index 0000000000000..dff729a9c1178
--- /dev/null
+++ b/pkgs/development/python-modules/ws4py/default.nix
@@ -0,0 +1,26 @@
+{ stdenv, buildPythonPackage, fetchPypi, pytest, mock, git, asyncio
+, cherrypy, gevent, tornado }:
+
+buildPythonPackage rec {
+  name = "${pname}-${version}";
+  pname = "ws4py";
+  version = "0.4.2";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0zr3254ky6r7q15l3dhdczfa8i723055zdkqssjifsgcwvirriks";
+  };
+
+  checkInputs = [ pytest mock git ];
+  propagatedBuildInputs = [ asyncio cherrypy gevent tornado ];
+
+  checkPhase = ''
+    pytest test
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = https://ws4py.readthedocs.org;
+    description = "A WebSocket package for Python";
+    maintainers = with maintainers; [ rickynils ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 9edf6571a527a..6a7ceb3c6d498 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -24545,29 +24545,7 @@ EOF
     };
   };
 
-  ws4py = buildPythonPackage rec {
-    name = "${pname}-${version}";
-    pname = "ws4py";
-    version = "0.4.2";
-
-    src = fetchPypi {
-      inherit pname version;
-      sha256 = "0zr3254ky6r7q15l3dhdczfa8i723055zdkqssjifsgcwvirriks";
-    };
-
-    buildInputs = with self; [ pytest mock ];
-    propagatedBuildInputs = with self; [ asyncio cherrypy gevent tornado ];
-
-    checkPhase = ''
-      pytest test
-    '';
-
-    meta = {
-      homepage = https://ws4py.readthedocs.org;
-      description = "A WebSocket package for Python";
-      maintainers = with maintainers; [ rickynils ];
-    };
-  };
+  ws4py = callPackage ../development/python-modules/ws4py {};
 
   gdata = buildPythonPackage rec {
     name = "gdata-${version}";