python3Packages.django-haystack: cleanup, enable tests
This commit is contained in:
parent
90ef69cae9
commit
808299482a
1 changed files with 41 additions and 11 deletions
|
@ -1,30 +1,60 @@
|
|||
{ lib, buildPythonPackage, fetchPypi
|
||||
, setuptools, setuptools-scm, django, python-dateutil, whoosh, pysolr
|
||||
, coverage, mock, nose, geopy, requests }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
|
||||
# build dependencies
|
||||
, setuptools-scm
|
||||
|
||||
# dependencies
|
||||
, django
|
||||
|
||||
# tests
|
||||
, geopy
|
||||
, nose
|
||||
, pysolr
|
||||
, python-dateutil
|
||||
, requests
|
||||
, whoosh
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-haystack";
|
||||
version = "3.1.1";
|
||||
format = "setuptools";
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "6d05756b95d7d5ec1dbd4668eb999ced1504b47f588e2e54be53b1404c516a82";
|
||||
};
|
||||
|
||||
checkInputs = [ pysolr whoosh python-dateutil geopy coverage nose mock coverage requests ];
|
||||
propagatedBuildInputs = [ django setuptools ];
|
||||
nativeBuildInputs = [ setuptools-scm ];
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's/geopy==/geopy>=/' setup.py
|
||||
substituteInPlace setup.py \
|
||||
--replace "geopy==" "geopy>="
|
||||
'';
|
||||
|
||||
# ImportError: cannot import name django.contrib.gis.geos.prototypes
|
||||
doCheck = false;
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
django
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
geopy
|
||||
nose
|
||||
pysolr
|
||||
python-dateutil
|
||||
requests
|
||||
whoosh
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Modular search for Django";
|
||||
description = "Pluggable search for Django";
|
||||
homepage = "http://haystacksearch.org/";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue