diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/office/paperless/python-modules/django-filter.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/office/paperless/python-modules/django-filter.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/office/paperless/python-modules/django-filter.nix b/nixpkgs/pkgs/applications/office/paperless/python-modules/django-filter.nix new file mode 100644 index 000000000000..ffe94d10d5c3 --- /dev/null +++ b/nixpkgs/pkgs/applications/office/paperless/python-modules/django-filter.nix @@ -0,0 +1,26 @@ +{ lib, buildPythonPackage, python, pythonOlder, fetchFromGitHub +, django, django-crispy-forms, djangorestframework, mock, pytz }: + +buildPythonPackage rec { + pname = "django-filter"; + version = "2.1.0-pre"; + disabled = pythonOlder "3.4"; + + src = fetchFromGitHub { + owner = "carltongibson"; + repo = pname; + rev = "24adad8c48bc9e7c7539b6510ffde4ce4effdc29"; + sha256 = "0hv4w95jnlzp9vdximl6bb27fyi75001jhvsbs0ikkd8amq8iaj7"; + }; + + checkInputs = [ django django-crispy-forms djangorestframework mock pytz ]; + + checkPhase = "${python.interpreter} runtests.py"; + + meta = with lib; { + description = "A reusable Django application for allowing users to filter querysets dynamically."; + homepage = https://github.com/carltongibson/django-filter; + license = licenses.bsd3; + maintainers = with maintainers; [ earvstedt ]; + }; +} |