summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinicius Monego <monego@posteo.net>2025-07-16 22:35:55 -0300
committerVinicius Monego <monego@posteo.net>2025-07-19 04:10:11 -0300
commita2972392a262e7163b7faa07d75de35e0809c7cc (patch)
tree0b1cd47eb33182e068135d75d2625d66fd3e0a8e
parent821a42d2fc0cf9b2cb7346369725637dc97dd1f1 (diff)
gnu: python-django-contact-form: Update to 5.2.0.
* gnu/packages/django.scm (python-django-contact-form): Update to 5.2.0. [source]: Update URI. [build-system]: Use pyproject-build-system. [arguments]<#:phases>: In the custom 'check' phase, respect '#:tests?', delete a file and use a more standard Django testing procedure. [native-inputs]: Remove python-coverage. Add python-pdm-backend, python-tzdata. Change-Id: I4a3209e45eb506bf24cac3e1b5ad80c0ca47c463
-rw-r--r--gnu/packages/django.scm26
1 files changed, 15 insertions, 11 deletions
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index a84f31fa896..22d6142d5f2 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -848,23 +848,27 @@ project aims to bulk update given objects using one query over Django ORM.")
(define-public python-django-contact-form
(package
(name "python-django-contact-form")
- (version "1.9")
+ (version "5.2.0")
(source (origin
(method url-fetch)
- (uri (pypi-uri "django-contact-form" version))
+ (uri (pypi-uri "django_contact_form" version))
(sha256
(base32
- "1my9hkrylckp5vfqg9b0kncrdlxjnwxll56sdciqn4v19i4wbq1y"))))
- (build-system python-build-system)
+ "091nji94c6d2n8zfpsfhwdv417ligi1hfwr4vvydbggf3s4q392n"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda _
- (invoke "coverage" "run" "--source" "contact_form"
- "runtests.py"))))))
+ (list
+ #:phases #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; This file contains a single test that requires
+ ;; python-akismet (not yet packaged).
+ (delete-file "tests/test_akismet_integration.py")
+ (setenv "DJANGO_SETTINGS_MODULE" "tests.test_settings")
+ (invoke "django-admin" "test" "--pythonpath=.")))))))
(native-inputs
- (list python-coverage))
+ (list python-pdm-backend python-tzdata))
(propagated-inputs
(list python-django))
(home-page "https://github.com/ubernostrum/django-contact-form")