2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2021-07-04 02:40:35 +00:00
|
|
|
, setuptools, setuptools-scm, django, python-dateutil, whoosh, pysolr
|
2020-04-24 23:36:52 +00:00
|
|
|
, coverage, mock, nose, geopy, requests }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-haystack";
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-07 07:45:13 +00:00
|
|
|
sha256 = "d490f920afa85471dd1fa5000bc8eff4b704daacbe09aee1a64e75cbc426f3be";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-04 02:40:35 +00:00
|
|
|
checkInputs = [ pysolr whoosh python-dateutil geopy coverage nose mock coverage requests ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ django setuptools ];
|
2021-06-04 09:07:49 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i 's/geopy==/geopy>=/' setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
# ImportError: cannot import name django.contrib.gis.geos.prototypes
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Modular search for Django";
|
|
|
|
homepage = "http://haystacksearch.org/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|