My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/django-filter/default.nix

44 lines
905 B

{ lib
, buildPythonPackage
, fetchPypi
, django
, djangorestframework, python, mock
}:
buildPythonPackage rec {
pname = "django-filter";
version = "21.1";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-YyolH6jxqttLjM7/kyu1L+L4Jt19/n8+rEDlxGPWg24=";
};
propagatedBuildInputs = [ django ];
pythonImportsCheck = [
"django_filters"
];
# Tests fail (needs the 'crispy_forms' module not packaged on nixos)
doCheck = false;
checkInputs = [
djangorestframework
django
mock
];
checkPhase = ''
runHook preCheck
${python.interpreter} runtests.py tests
runHook postCheck
'';
meta = with lib; {
description = "Reusable Django application for allowing users to filter querysets dynamically";
homepage = "https://pypi.org/project/django-filter/";
license = licenses.bsd3;
maintainers = with maintainers; [ mmai ];
};
}