pythonPackages.django-filter: init at 2.1.0
This commit is contained in:
parent
704b80fb9e
commit
316402e4e6
34
pkgs/development/python-modules/django-filter/default.nix
Normal file
34
pkgs/development/python-modules/django-filter/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user