gnu: python-django-url-filter: Patch for Django 4.0 compatibility.

* gnu/packages/django.scm (python-django-url-filter)[source](modules,
snippet): New fields.
This commit is contained in:
Marius Bakke 2022-01-20 16:13:57 +01:00
parent 4c2df34c41
commit f001f30bdf
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -6,7 +6,7 @@
;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2018 Vijayalakshmi Vedantham <vijimay12@gmail.com> ;;; Copyright © 2018 Vijayalakshmi Vedantham <vijimay12@gmail.com>
;;; Copyright © 2019 Sam <smbaines8@gmail.com> ;;; Copyright © 2019 Sam <smbaines8@gmail.com>
;;; Copyright © 2020, 2021 Marius Bakke <marius@gnu.org> ;;; Copyright © 2020, 2021, 2022 Marius Bakke <marius@gnu.org>
;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2021 Luis Felipe López Acevedo <luis.felipe.la@protonmail.com> ;;; Copyright © 2021 Luis Felipe López Acevedo <luis.felipe.la@protonmail.com>
;;; ;;;
@ -1263,7 +1263,14 @@ (define-public python-django-url-filter
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"0r4zhqhs8y6cnplwyvcb0zpijizw1ifnszs38n4w8138657f9026")))) "0r4zhqhs8y6cnplwyvcb0zpijizw1ifnszs38n4w8138657f9026"))
(modules '((guix build utils)))
(snippet
;; Patch for Django 4.0 compatibility, taken from upstream pull
;; request: https://github.com/miki725/django-url-filter/pull/103
'(substitute* "url_filter/validators.py"
((" ungettext_lazy")
" ngettext_lazy")))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
'(#:tests? #f ;FIXME: Django raises "Apps aren't loaded yet"!? '(#:tests? #f ;FIXME: Django raises "Apps aren't loaded yet"!?