~ruther/guix-local

5dfbbcb170c30656cab8a4e170c8bb3752361044 — jgart 7 months ago 32148e9
gnu: Add python-django-widget-tweaks.

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

Change-Id: Idf20e8d6666da3a2564432fa4613354848cba920
1 files changed, 30 insertions(+), 0 deletions(-)

M gnu/packages/django.scm
M gnu/packages/django.scm => gnu/packages/django.scm +30 -0
@@ 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")