2018-06-22 09:06:03 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2018-06-22 09:06:43 +00:00
|
|
|
, setuptools_scm, django, dateutil, whoosh, pysolr
|
|
|
|
, coverage, mock, nose, geopy, requests }:
|
2018-06-22 09:06:03 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-haystack";
|
2018-06-22 09:06:43 +00:00
|
|
|
version = "2.8.1";
|
2018-06-22 09:06:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-06-22 09:06:43 +00:00
|
|
|
sha256 = "8b54bcc926596765d0a3383d693bcdd76109c7abb6b2323b3984a39e3576028c";
|
2018-06-22 09:06:03 +00:00
|
|
|
};
|
|
|
|
|
2018-06-22 09:06:43 +00:00
|
|
|
checkInputs = [ pysolr whoosh dateutil geopy coverage nose mock coverage requests ];
|
2018-06-22 09:06:03 +00:00
|
|
|
propagatedBuildInputs = [ django ];
|
2018-06-22 09:06:43 +00:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
2018-06-22 09:06:03 +00:00
|
|
|
|
2018-06-22 09:06:43 +00:00
|
|
|
postPatch = ''
|
2018-06-22 09:06:03 +00:00
|
|
|
sed -i 's/geopy==/geopy>=/' setup.py
|
|
|
|
'';
|
|
|
|
|
2018-06-22 09:06:43 +00:00
|
|
|
# ImportError: cannot import name django.contrib.gis.geos.prototypes
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-06-22 09:06:03 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Modular search for Django";
|
|
|
|
homepage = "http://haystacksearch.org/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|