nixpkgs/pkgs/development/python-modules/django-haystack/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

61 lines
927 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;
hash = "sha256-l+MZeu/CJf5AW28XYAolNL+CfLTWdDEwwgvBoG9yk6Q=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "geopy==" "geopy>="
'';
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
django
];
nativeCheckInputs = [
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; [ ];
};
}