about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChris Ostrouchov <chris.ostrouchov@gmail.com>2018-10-27 17:49:27 -0400
committerChris Ostrouchov <chris.ostrouchov@gmail.com>2018-10-30 00:50:50 -0400
commit21226f859c5a1191871e094aa824e28affa37e08 (patch)
treee810e599f86fbaf28f01ba02ce02d1f7f0057d38
parent265b0c85ac5472698d6c26560623ee768cb9cbbf (diff)
downloadnixlib-21226f859c5a1191871e094aa824e28affa37e08.tar
nixlib-21226f859c5a1191871e094aa824e28affa37e08.tar.gz
nixlib-21226f859c5a1191871e094aa824e28affa37e08.tar.bz2
nixlib-21226f859c5a1191871e094aa824e28affa37e08.tar.lz
nixlib-21226f859c5a1191871e094aa824e28affa37e08.tar.xz
nixlib-21226f859c5a1191871e094aa824e28affa37e08.tar.zst
nixlib-21226f859c5a1191871e094aa824e28affa37e08.zip
pythonPackages.stompclient: refactor move to python-modules
-rw-r--r--pkgs/development/python-modules/stompclient/default.nix29
-rw-r--r--pkgs/top-level/python-packages.nix20
2 files changed, 30 insertions, 19 deletions
diff --git a/pkgs/development/python-modules/stompclient/default.nix b/pkgs/development/python-modules/stompclient/default.nix
new file mode 100644
index 000000000000..1efcd6a65005
--- /dev/null
+++ b/pkgs/development/python-modules/stompclient/default.nix
@@ -0,0 +1,29 @@
+{ stdenv
+, buildPythonPackage
+, fetchPypi
+, isPy3k
+, mock
+, nose
+}:
+
+buildPythonPackage rec {
+  pname = "stompclient";
+  version = "0.3.2";
+  disabled = isPy3k;
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "95a4e98dd0bba348714439ea11a25ee8a74acb8953f95a683924b5bf2a527e4e";
+  };
+
+  buildInputs = [ mock nose ];
+
+  # XXX: Ran 0 tests in 0.217s
+
+  meta = with stdenv.lib; {
+    description = "Lightweight and extensible STOMP messaging client";
+    homepage = https://bitbucket.org/hozn/stompclient;
+    license = licenses.asl20;
+  };
+
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 62da7064f448..20b0d1ddaf02 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -3914,25 +3914,7 @@ in {
 
   python_statsd = callPackage ../development/python-modules/python_statsd { };
 
-  stompclient = buildPythonPackage (rec {
-    name = "stompclient-0.3.2";
-    disabled = isPy3k;
-
-    src = pkgs.fetchurl {
-      url = "mirror://pypi/s/stompclient/${name}.tar.gz";
-      sha256 = "95a4e98dd0bba348714439ea11a25ee8a74acb8953f95a683924b5bf2a527e4e";
-    };
-
-    buildInputs = with self; [ mock nose ];
-
-    # XXX: Ran 0 tests in 0.217s
-
-    meta = {
-      description = "Lightweight and extensible STOMP messaging client";
-      homepage = https://bitbucket.org/hozn/stompclient;
-      license = licenses.asl20;
-    };
-  });
+  stompclient = callPackage ../development/python-modules/stompclient { };
 
   subdownloader = buildPythonPackage rec {
     version = "2.0.18";