pythonPackages.django-filter: init at 2.1.0

This commit is contained in:
Henri Bourcereau 2019-01-27 12:04:31 +01:00 committed by worldofpeace
parent 704b80fb9e
commit 316402e4e6
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,34 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, django
, djangorestframework, python, mock
}:
buildPythonPackage rec {
pname = "django-filter";
version = "2.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "057xiijig8r2nxrd9gj1nki168422rsh8ap5vkbr9zyp1mzvbpn3";
};
propagatedBuildInputs = [ django ];
# 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 stdenv.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 ];
};
}

View File

@ -2933,6 +2933,8 @@ in {
django_extensions = callPackage ../development/python-modules/django-extensions { };
django-filter = callPackage ../development/python-modules/django-filter { };
django-gravatar2 = callPackage ../development/python-modules/django-gravatar2 { };
django_guardian = callPackage ../development/python-modules/django_guardian { };