diff options
Diffstat (limited to 'pkgs/development/python-modules/django-haystack/default.nix')
-rw-r--r-- | pkgs/development/python-modules/django-haystack/default.nix | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/pkgs/development/python-modules/django-haystack/default.nix b/pkgs/development/python-modules/django-haystack/default.nix index 32839d246c33a..f74215dd1e8d5 100644 --- a/pkgs/development/python-modules/django-haystack/default.nix +++ b/pkgs/development/python-modules/django-haystack/default.nix @@ -10,11 +10,11 @@ # dependencies django, + packaging, # tests elasticsearch, geopy, - nose, pysolr, python-dateutil, requests, @@ -23,42 +23,37 @@ buildPythonPackage rec { pname = "django-haystack"; - version = "3.2.1"; + version = "3.3.0"; format = "pyproject"; disabled = pythonOlder "3.5"; src = fetchPypi { - inherit pname version; - hash = "sha256-l+MZeu/CJf5AW28XYAolNL+CfLTWdDEwwgvBoG9yk6Q="; + pname = "django_haystack"; + inherit version; + hash = "sha256-487ta4AAYl2hTUCetNrGmJSQXirIrBj5v9tZMjygLqs="; }; - postPatch = '' - substituteInPlace setup.py \ - --replace "geopy==" "geopy>=" - ''; - - nativeBuildInputs = [ + build-system = [ setuptools setuptools-scm ]; buildInputs = [ django ]; + propagatedBuildInputs = [ packaging ]; - passthru.optional-dependencies = { + optional-dependencies = { elasticsearch = [ elasticsearch ]; }; - doCheck = lib.versionOlder django.version "4"; - nativeCheckInputs = [ geopy - nose pysolr python-dateutil requests whoosh - ] ++ passthru.optional-dependencies.elasticsearch; + ] ++ optional-dependencies.elasticsearch; + checkPhase = '' runHook preCheck @@ -70,6 +65,6 @@ buildPythonPackage rec { description = "Pluggable search for Django"; homepage = "http://haystacksearch.org/"; license = licenses.bsd3; - maintainers = with maintainers; [ ]; + maintainers = [ ]; }; } |