depot/third_party/nixpkgs/pkgs/development/python-modules/django-haystack/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

60 lines
923 B
Nix

{ 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.2.1";
format = "setuptools";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-l+MZeu/CJf5AW28XYAolNL+CfLTWdDEwwgvBoG9yk6Q=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "geopy==" "geopy>="
'';
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
django
];
checkInputs = [
geopy
nose
pysolr
python-dateutil
requests
whoosh
];
meta = with lib; {
description = "Pluggable search for Django";
homepage = "http://haystacksearch.org/";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}