[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#43354] [PATCH 44/55] gnu: Add python-django-url-filter.
From: |
Marius Bakke |
Subject: |
[bug#43354] [PATCH 44/55] gnu: Add python-django-url-filter. |
Date: |
Sat, 12 Sep 2020 16:29:00 +0200 |
* gnu/packages/django.scm (python-django-url-filter): New public variable.
---
gnu/packages/django.scm | 47 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index df8edb2537..51eb1789f5 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -1462,3 +1462,50 @@ to ElasticSearch.")
"This package provides mappings for the PostgreSQL @code{INET} and
@code{CIDR} fields for use in Django projects.")
(license license:bsd-3)))
+
+(define-public python-django-url-filter
+ (package
+ (name "python-django-url-filter")
+ (version "0.3.15")
+ (home-page "https://github.com/miki725/django-url-filter")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference (url home-page) (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0r4zhqhs8y6cnplwyvcb0zpijizw1ifnszs38n4w8138657f9026"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:tests? #f ;FIXME: Django raises "Apps aren't loaded yet"!?
+ #:phases (modify-phases %standard-phases
+ (add-before 'check 'loosen-requirements
+ (lambda _
+ ;; Do not depend on compatibility package for old
+ ;; Python versions.
+ (substitute* "requirements.txt"
+ (("enum-compat") ""))
+ #t))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (if tests?
+ (begin
+ (setenv "PYTHONPATH"
+ (string-append "./build/lib:.:"
+ (getenv "PYTHONPATH")))
+ (setenv "DJANGO_SETTINGS_MODULE"
+ "test_project.settings")
+ (invoke "pytest" "-vv" "--doctest-modules"
+ "tests/" "url_filter/"))
+ (format #t "test suite not run~%")))))))
+ (propagated-inputs
+ `(("python-cached-property" ,python-cached-property)
+ ("python-django" ,python-django)
+ ("python-six" ,python-six)))
+ (synopsis "Filter data via human-friendly URLs")
+ (description
+ "The main goal of Django URL Filter is to provide an easy URL interface
+for filtering data. It allows the user to safely filter by model attributes
+and also allows to specify the lookup type for each filter (very much like
+Django's filtering system in ORM).")
+ (license license:expat)))
--
2.28.0
- [bug#43354] [PATCH 29/55] gnu: Add python-rq-scheduler., (continued)
- [bug#43354] [PATCH 29/55] gnu: Add python-rq-scheduler., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 32/55] gnu: python-django-sortedm2m: Update to 3.0.2., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 30/55] gnu: python-django-rq: Update to 2.3.2., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 33/55] gnu: python-django-appconf: Update to 1.0.4., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 35/55] gnu: python-django-sekizai: Update to 2.0.0., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 34/55] gnu: python-django-statici18n: Update to 1.9.0., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 36/55] gnu: python-django-override-storage: Update to 0.3.0., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 41/55] gnu: Add python-sqlalchemy-mock., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 37/55] gnu: python-ldap: Update to 3.3.1., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 42/55] gnu: Add python-jsonplus., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 44/55] gnu: Add python-django-url-filter.,
Marius Bakke <=
- [bug#43354] [PATCH 38/55] gnu: Add python-django-auth-ldap., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 39/55] gnu: Add python-django-logging-json., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 40/55] gnu: Add python-django-netfields., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 43/55] gnu: Add python-django-debug-toolbar-alchemy., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 45/55] gnu: Remove pootle., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 46/55] gnu: Remove python2-django-mailman3., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 48/55] gnu: Remove python2 versions of Django packages., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 47/55] gnu: python2-graphite-web: Update to 1.1.7., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 49/55] gnu: Deprecate python-django-jsonfield., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 52/55] gnu: python-mysqlclient: Remove unused inputs., Marius Bakke, 2020/09/12