summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-06-22 11:15:32 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2018-06-22 13:09:48 +0200
commit689691111772eee39aed93a3e50221bccce488cc (patch)
treebe65ac12069c7b55fffaf0e450980e3c4b55c759 /pkgs
parent95ce1c4e128216a76bda07ba7b55d9b5fc2872b9 (diff)
downloadnixlib-689691111772eee39aed93a3e50221bccce488cc.tar
nixlib-689691111772eee39aed93a3e50221bccce488cc.tar.gz
nixlib-689691111772eee39aed93a3e50221bccce488cc.tar.bz2
nixlib-689691111772eee39aed93a3e50221bccce488cc.tar.lz
nixlib-689691111772eee39aed93a3e50221bccce488cc.tar.xz
nixlib-689691111772eee39aed93a3e50221bccce488cc.tar.zst
nixlib-689691111772eee39aed93a3e50221bccce488cc.zip
python.pkgs.pysolr: move expression
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/pysolr/default.nix22
-rw-r--r--pkgs/top-level/python-packages.nix22
2 files changed, 23 insertions, 21 deletions
diff --git a/pkgs/development/python-modules/pysolr/default.nix b/pkgs/development/python-modules/pysolr/default.nix
new file mode 100644
index 000000000000..5a444fe1b52e
--- /dev/null
+++ b/pkgs/development/python-modules/pysolr/default.nix
@@ -0,0 +1,22 @@
+{ lib, buildPythonPackage, fetchPypi, requests }:
+
+buildPythonPackage rec {
+  pname = "pysolr";
+  version = "3.3.3";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "1wapg9n7myn7c82r3nzs2gisfzx52nip8w2mrfy0yih1zn02mnd6";
+  };
+
+  propagatedBuildInputs = [ requests ];
+
+  doCheck = false; # no tests in PyPI tarball
+
+  meta = with lib; {
+    description = "Lightweight Python wrapper for Apache Solr";
+    homepage = "http://github.com/toastdriven/pysolr/";
+    license = licenses.bsd3;
+  };
+}
+
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 0ff3b643772f..3d374f41455b 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -12094,27 +12094,7 @@ in {
 
   rjsmin = callPackage ../development/python-modules/rjsmin { };
 
-  pysolr = buildPythonPackage rec {
-    name = "pysolr-${version}";
-    version = "3.3.3";
-
-    src = pkgs.fetchurl {
-      url = "mirror://pypi/p/pysolr/pysolr-${version}.tar.gz";
-      sha256 = "1wapg9n7myn7c82r3nzs2gisfzx52nip8w2mrfy0yih1zn02mnd6";
-    };
-
-    propagatedBuildInputs = with self; [
-      requests
-    ];
-    buildInputs = with self; [
-
-    ];
-
-    meta = with stdenv.lib; {
-      homepage = "http://github.com/toastdriven/pysolr/";
-    };
-  };
-
+  pysolr = callPackage ../development/python-modules/pysolr { };
 
   django-haystack = callPackage ../development/python-modules/django-haystack { };