2021-10-13 20:52:23 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
|
|
|
|
# build dependencies
|
|
|
|
, setuptools-scm
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
, django
|
|
|
|
|
|
|
|
# tests
|
|
|
|
, geopy
|
|
|
|
, nose
|
|
|
|
, pysolr
|
|
|
|
, python-dateutil
|
|
|
|
, requests
|
|
|
|
, whoosh
|
|
|
|
}:
|
2018-06-22 10:06:03 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-haystack";
|
2021-08-28 07:16:35 +01:00
|
|
|
version = "3.1.1";
|
2021-10-13 20:52:23 +01:00
|
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.5";
|
2018-06-22 10:06:03 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-28 07:16:35 +01:00
|
|
|
sha256 = "6d05756b95d7d5ec1dbd4668eb999ced1504b47f588e2e54be53b1404c516a82";
|
2018-06-22 10:06:03 +01:00
|
|
|
};
|
|
|
|
|
2018-06-22 10:06:43 +01:00
|
|
|
postPatch = ''
|
2021-10-13 20:52:23 +01:00
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "geopy==" "geopy>="
|
2018-06-22 10:06:03 +01:00
|
|
|
'';
|
|
|
|
|
2021-10-13 20:52:23 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
geopy
|
|
|
|
nose
|
|
|
|
pysolr
|
|
|
|
python-dateutil
|
|
|
|
requests
|
|
|
|
whoosh
|
|
|
|
];
|
2018-06-22 10:06:43 +01:00
|
|
|
|
2018-06-22 10:06:03 +01:00
|
|
|
meta = with lib; {
|
2021-10-13 20:52:23 +01:00
|
|
|
description = "Pluggable search for Django";
|
2018-06-22 10:06:03 +01:00
|
|
|
homepage = "http://haystacksearch.org/";
|
|
|
|
license = licenses.bsd3;
|
2021-10-13 20:52:23 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-06-22 10:06:03 +01:00
|
|
|
};
|
|
|
|
}
|