mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 13:23:17 +00:00
b57f25ac80
As a side-effect of f7e28bf5d8
, the build
no longer propagated 'setuptools', which is a run-time dependency. See
https://github.com/NixOS/nixpkgs/pull/68314 for further details.
Fixes https://github.com/NixOS/nixpkgs/issues/68479.
31 lines
838 B
Nix
31 lines
838 B
Nix
{ lib, buildPythonPackage, fetchPypi
|
|
, setuptools, setuptools_scm, django, dateutil, whoosh, pysolr
|
|
, coverage, mock, nose, geopy, requests }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-haystack";
|
|
version = "2.8.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "8b54bcc926596765d0a3383d693bcdd76109c7abb6b2323b3984a39e3576028c";
|
|
};
|
|
|
|
checkInputs = [ pysolr whoosh dateutil geopy coverage nose mock coverage requests ];
|
|
propagatedBuildInputs = [ django setuptools ];
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
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;
|
|
};
|
|
}
|