[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
49/57: gnu: Add python-django-url-filter.
From: |
guix-commits |
Subject: |
49/57: gnu: Add python-django-url-filter. |
Date: |
Tue, 22 Sep 2020 12:43:43 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 4f1b919156229957a686a9418a4753051f275a37
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Tue Sep 1 18:05:41 2020 +0200
gnu: Add python-django-url-filter.
* 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 6953f8d..f9a4a90 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -1280,3 +1280,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)))
- 45/57: gnu: Add python-django-netfields., (continued)
- 45/57: gnu: Add python-django-netfields., guix-commits, 2020/09/22
- 57/57: gnu: python-hyperkitty: Enable previously failing test., guix-commits, 2020/09/22
- 21/57: gnu: python-webassets: Update to 2.0., guix-commits, 2020/09/22
- 30/57: gnu: python-rq: Update to 1.5.1., guix-commits, 2020/09/22
- 39/57: gnu: python-django-override-storage: Update to 0.3.0., guix-commits, 2020/09/22
- 35/57: gnu: python-django-sortedm2m: Update to 3.0.2., guix-commits, 2020/09/22
- 36/57: gnu: python-django-appconf: Update to 1.0.4., guix-commits, 2020/09/22
- 38/57: gnu: python-django-sekizai: Update to 2.0.0., guix-commits, 2020/09/22
- 41/57: gnu: Deprecate python-django-jsonfield., guix-commits, 2020/09/22
- 50/57: gnu: Remove python-django-overextends., guix-commits, 2020/09/22
- 49/57: gnu: Add python-django-url-filter.,
guix-commits <=
- 53/57: gnu: Remove python2-mysqlclient., guix-commits, 2020/09/22
- 56/57: gnu: patchwork: Update to 2.2.2., guix-commits, 2020/09/22
- 10/57: gnu: python-django-extensions: Update to 3.0.6., guix-commits, 2020/09/22
- 12/57: gnu: python-django-crispy-forms: Update to 1.9.2., guix-commits, 2020/09/22
- 13/57: gnu: python-djangorestframework: Update to 3.11.1., guix-commits, 2020/09/22
- 17/57: gnu: python-django-pipeline: Update to 2.0.5., guix-commits, 2020/09/22
- 19/57: gnu: python-django-debug-toolbar: Update to 2.2., guix-commits, 2020/09/22
- 20/57: gnu: python-django-gravatar2: Update to 1.4.4., guix-commits, 2020/09/22
- 22/57: gnu: python-django-assets: Update to 2.0., guix-commits, 2020/09/22
- 23/57: gnu: python-dj-database-url: Update to 0.5.0., guix-commits, 2020/09/22