summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEvgeny Pisemsky <mail@pisemsky.site>2026-03-28 11:33:33 +0300
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-03-28 13:43:18 +0000
commit3b67d6e294f717983093e75e9e98dccb23d79144 (patch)
tree8ee824f632592e787c3059160ded54bc5bb541a4 /gnu
parent7638729a6746df4b37ce025c29139abef1d6e694 (diff)
gnu: Add python-django-webtest.
* gnu/packages/django.scm (python-django-webtest): New variable. Merges: https://codeberg.org/guix/guix/pulls/7537 Change-Id: I478974de173041c7296802b46c5ca225a6a398be Reviewed-by: Hugo Buddelmeijer <hugo@buddelmeijer.nl> Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/django.scm40
1 files changed, 40 insertions, 0 deletions
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 3cf636fc29a..ae5ad93e433 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -572,6 +572,46 @@ when coding custom template tags.")
"Django-taggit is a reusable Django application for simple tagging.")
(license license:bsd-3)))
+(define-public python-django-webtest
+ (package
+ (name "python-django-webtest")
+ (version "1.9.14")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/django-webtest/django-webtest")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1yndvjhccm6251cxl0y1rdx7k36b1q26d7rhz6vb6ajv3w68d8r7"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "django_webtest_tests"
+ (setenv "DJANGO_SETTINGS_MODULE" "settings")
+ (invoke "python" "runtests.py")
+ (invoke "pytest" "test_pytest.py"))))))))
+ (native-inputs
+ (list python-pytest
+ python-pytest-django
+ python-setuptools
+ python-tzdata))
+ (propagated-inputs
+ (list python-webtest
+ python-django))
+ (home-page "https://github.com/django-webtest/django-webtest")
+ (synopsis "Integration of WebTest with Django")
+ (description
+ "This package provides an instant integration of Ian Bicking's WebTest with
+Django's testing framework.")
+ (license license:expat)))
+
(define-public python-easy-thumbnails
(package
(name "python-easy-thumbnails")