From f001f30bdf371632b554792ac526a36a92ffa60c Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Thu, 20 Jan 2022 16:13:57 +0100 Subject: [PATCH] gnu: python-django-url-filter: Patch for Django 4.0 compatibility. * gnu/packages/django.scm (python-django-url-filter)[source](modules, snippet): New fields. --- gnu/packages/django.scm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index 71b99edbc5..d5f69b22da 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -6,7 +6,7 @@ ;;; Copyright © 2017 Ricardo Wurmus ;;; Copyright © 2018 Vijayalakshmi Vedantham ;;; Copyright © 2019 Sam -;;; Copyright © 2020, 2021 Marius Bakke +;;; Copyright © 2020, 2021, 2022 Marius Bakke ;;; Copyright © 2021 Maxim Cournoyer ;;; Copyright © 2021 Luis Felipe López Acevedo ;;; @@ -1263,7 +1263,14 @@ (define-public python-django-url-filter (file-name (git-file-name name version)) (sha256 (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) (arguments '(#:tests? #f ;FIXME: Django raises "Apps aren't loaded yet"!?