[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/16] gnu: Add python-django-filter.
From: |
Efraim Flashner |
Subject: |
[PATCH 09/16] gnu: Add python-django-filter. |
Date: |
Sun, 11 Sep 2016 21:58:50 +0300 |
* gnu/packages/python.scm (python-django-filter): New variable.
---
gnu/packages/python.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 36b96f6..7effc67 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1762,6 +1762,36 @@ useful tools for testing Django applications and
projects.")
`(("python2-setuptools" ,python2-setuptools)
,@(package-native-inputs base))))))
+(define-public python-django-filter
+ (package
+ (name "python-django-filter")
+ (version "0.14.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "django-filter" version))
+ (sha256
+ (base32
+ "0f78hmk8c903zwfzlsiw7ivgag81ymmb5hi73rzxbhnlg2v0l3fx"))))
+ (build-system python-build-system)
+ (home-page "https://django-filter.readthedocs.io/en/latest/")
+ (synopsis "Reusable Django application to filter querysets dynamically")
+ (description
+ "Django-filter is a generic, reusable application to alleviate writing
+some of the more mundane bits of view code. Specifically, it allows users to
+filter down a queryset based on a model’s fields, displaying the form to let
+them do this.")
+ (properties `((python2-variant . ,(delay python2-django-filter))))
+ (license license:bsd-3)))
+
+(define-public python2-django-filter
+ (let ((base (package-with-python2
+ (strip-python2-variant python-django-filter))))
+ (package (inherit base)
+ (native-inputs
+ `(("python2-setuptools" ,python2-setuptools)
+ ,@(package-native-inputs base))))))
+
(define-public python-pytest-xdist
(package
(name "python-pytest-xdist")
--
2.10.0
- Re: [PATCH 04/16] gnu: Add python-pytest-mock., (continued)
- [PATCH 05/16] gnu: Add python-graphql-core., Efraim Flashner, 2016/09/11
- [PATCH 06/16] gnu: Add python-graphql-relay., Efraim Flashner, 2016/09/11
- [PATCH 07/16] gnu: Add python-sqlalchemy-utils., Efraim Flashner, 2016/09/11
- [PATCH 12/16] gnu: Add python-cov-core., Efraim Flashner, 2016/09/11
- [PATCH 08/16] gnu: Add python-pytest-django., Efraim Flashner, 2016/09/11
- [PATCH 13/16] gnu: Add python-nose2., Efraim Flashner, 2016/09/11
- [PATCH 09/16] gnu: Add python-django-filter.,
Efraim Flashner <=
- [PATCH 11/16] gnu: Add python-consul., Efraim Flashner, 2016/09/11
- [PATCH 10/16] gnu: Add python-graphene., Efraim Flashner, 2016/09/11
- [PATCH 14/16] gnu: Add python-bcrypt., Efraim Flashner, 2016/09/11
- [PATCH 15/16] gnu: Add python-nautilus., Efraim Flashner, 2016/09/11
- [PATCH 16/16] gnu: Add onionshare., Efraim Flashner, 2016/09/11
- Re: [PATCH 00/16] Add onionshare, Efraim Flashner, 2016/09/11