python.pkgs.pysolr: move expression

This commit is contained in:
Robert Schütz 2018-06-22 11:15:32 +02:00 committed by Frederik Rietdijk
parent 95ce1c4e12
commit 6896911117
2 changed files with 23 additions and 21 deletions

View File

@ -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;
};
}

View File

@ -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 { };