2018-06-22 11:06:03 +02:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2021-07-03 13:37:24 +02:00
|
|
|
, setuptools, setuptools-scm, django, python-dateutil, whoosh, pysolr
|
2018-06-22 11:06:43 +02:00
|
|
|
, coverage, mock, nose, geopy, requests }:
|
2018-06-22 11:06:03 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-haystack";
|
2021-08-28 08:16:35 +02:00
|
|
|
version = "3.1.1";
|
2018-06-22 11:06:03 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-28 08:16:35 +02:00
|
|
|
sha256 = "6d05756b95d7d5ec1dbd4668eb999ced1504b47f588e2e54be53b1404c516a82";
|
2018-06-22 11:06:03 +02:00
|
|
|
};
|
|
|
|
|
2021-07-03 13:37:24 +02:00
|
|
|
checkInputs = [ pysolr whoosh python-dateutil geopy coverage nose mock coverage requests ];
|
2019-09-11 11:42:23 +02:00
|
|
|
propagatedBuildInputs = [ django setuptools ];
|
2021-06-03 12:09:11 +02:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2018-06-22 11:06:03 +02:00
|
|
|
|
2018-06-22 11:06:43 +02:00
|
|
|
postPatch = ''
|
2018-06-22 11:06:03 +02:00
|
|
|
sed -i 's/geopy==/geopy>=/' setup.py
|
|
|
|
'';
|
|
|
|
|
2018-06-22 11:06:43 +02:00
|
|
|
# ImportError: cannot import name django.contrib.gis.geos.prototypes
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-06-22 11:06:03 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Modular search for Django";
|
|
|
|
homepage = "http://haystacksearch.org/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|