python.pkgs.django-haystack: move expression

This commit is contained in:
Robert Schütz 2018-06-22 11:06:03 +02:00 committed by Frederik Rietdijk
parent c34c192714
commit 95ce1c4e12
2 changed files with 30 additions and 25 deletions

View File

@ -0,0 +1,29 @@
{ lib, buildPythonPackage, fetchPypi
, django, dateutil, whoosh, pysolr, elasticsearch
, coverage, mock, nose, geopy }:
buildPythonPackage rec {
pname = "django-haystack";
version = "2.4.1";
src = fetchPypi {
inherit pname version;
sha256 = "04cva8qg79xig4zqhb4dwkpm7734dvhzqclzvrdz70fh59ki5b4f";
};
doCheck = false; # no tests in source
checkInputs = [ elasticsearch pysolr whoosh dateutil geopy coverage nose mock coverage ];
propagatedBuildInputs = [ django ];
patchPhase = ''
sed -i 's/geopy==/geopy>=/' setup.py
sed -i 's/whoosh==/Whoosh>=/' setup.py
'';
meta = with lib; {
description = "Modular search for Django";
homepage = "http://haystacksearch.org/";
license = licenses.bsd3;
};
}

View File

@ -12116,31 +12116,7 @@ in {
};
django-haystack = buildPythonPackage rec {
name = "django-haystack-${version}";
version = "2.4.1";
src = pkgs.fetchurl {
url = "mirror://pypi/d/django-haystack/django-haystack-${version}.tar.gz";
sha256 = "04cva8qg79xig4zqhb4dwkpm7734dvhzqclzvrdz70fh59ki5b4f";
};
doCheck = false; # no tests in source
buildInputs = with self; [ coverage mock nose geopy ];
propagatedBuildInputs = with self; [
django dateutil_1_5 whoosh pysolr elasticsearch
];
patchPhase = ''
sed -i 's/geopy==/geopy>=/' setup.py
sed -i 's/whoosh==/Whoosh>=/' setup.py
'';
meta = with stdenv.lib; {
homepage = "http://haystacksearch.org/";
};
};
django-haystack = callPackage ../development/python-modules/django-haystack { };
geoalchemy2 = buildPythonPackage rec {
name = "GeoAlchemy2-${version}";