summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinicius Monego <monego@posteo.net>2025-07-21 00:13:53 -0300
committerVinicius Monego <monego@posteo.net>2025-07-23 15:30:16 -0300
commitd5994ac10c06b9206eafa2a76f577ab221fea969 (patch)
treed7a71240aeecc422ec9fb280e98e0f7cf36eb442
parent19653360b213260c38f339acbb32669ddaa204ed (diff)
gnu: Add python-django-htmx.
* gnu/packages/django.scm (python-django-htmx): New variable. Change-Id: I86cd8050c0815ea251d1dcaf96db07c2a304493b
-rw-r--r--gnu/packages/django.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 6ba0faed5f..981a4c576e 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -938,6 +938,38 @@ and Python type hints. It is designed to be fast and easy to use thanks
to asyncio and Pydantic.")
(license license:expat)))
+(define-public python-django-htmx
+ (package
+ (name "python-django-htmx")
+ (version "1.23.2")
+ (source (origin
+ (method git-fetch) ; PyPI does not include settings.py for tests
+ (uri (git-reference
+ (url "https://github.com/adamchainz/django-htmx")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0gr6zahrqvx8sjsy7wr1k7rgavz7bjx32kky4900gff70wrqbmvy"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (setenv "DJANGO_SETTINGS_MODULE" "tests.settings")
+ (invoke "django-admin" "test" "tests"
+ "--pythonpath=.")))))))
+ (propagated-inputs (list python-asgiref python-django))
+ (native-inputs (list python-pytest python-setuptools-next python-wheel))
+ (home-page "https://django-htmx.readthedocs.io/en/latest/")
+ (synopsis "Extensions for using Django with htmx")
+ (description "This package provides a Django extension to work with
+@url{https://htmx.org/,htmx}.")
+ (license license:expat)))
+
(define-public python-django-pipeline
(package
(name "python-django-pipeline")