gnu: Add python-django-widget-tweaks.

* gnu/packages/django.scm (python-django-widget-tweaks): New variable.

Change-Id: Idf20e8d6666da3a2564432fa4613354848cba920
This commit is contained in:
jgart 2025-08-28 15:16:49 -05:00
parent 32148e9a3c
commit 5dfbbcb170
No known key found for this signature in database
GPG key ID: A52AA2B477B6DD35

View file

@ -12,6 +12,7 @@
;;; Copyright © 2022 Pradana Aumars <paumars@courrier.dev>
;;; Copyright © 2025 Sharlatan Hellseher <sharlatanus@gmail.com>
;;; Copyright © 2025 Vinicius Monego <monego@posteo.net>
;;; Copyright © 2025 jgart <jgart@dismail.de>
;;;
;;; This file is part of GNU Guix.
;;;
@ -1925,6 +1926,35 @@ image files already supported by it.")
variables to configure your Django application.")
(license license:expat)))
(define-public python-django-widget-tweaks
(package
(name "python-django-widget-tweaks")
(version "1.5.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "django-widget-tweaks" version))
(sha256
(base32 "1ir9qrygb0bsi53sqxs7052i5gpbzz3h8j3m5j94x6dv3rl8088w"))))
(build-system pyproject-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "-m" "django" "test"
"--settings=tests.settings")))))))
(native-inputs (list python-setuptools python-wheel))
(propagated-inputs (list python-django))
(home-page "https://github.com/jazzband/django-widget-tweaks")
(synopsis "Tweak the form field rendering in Django templates")
(description
"This package provides a way to tweak the form field rendering in
templates and not in python-level form definitions.")
(license license:expat)))
(define-public python-django-cleanup
(package
(name "python-django-cleanup")