diff options
| author | Vinicius Monego <monego@posteo.net> | 2025-07-16 22:21:56 -0300 |
|---|---|---|
| committer | Vinicius Monego <monego@posteo.net> | 2025-07-19 04:10:10 -0300 |
| commit | d1a9c8429d42afe2d39ece1a874a2fbd1b6b9cdb (patch) | |
| tree | 2a39a41112b277e5a371081ee532a095120f5727 /gnu | |
| parent | 4a94bcba12b4150917c123bc46489cd5a5115a9a (diff) | |
gnu: python-django-sekizai: Enable tests.
* gnu/packages/django.scm (python-django-sekizai)[build-system]: Use
pyproject-build-system.
[arguments]: Use Gexp. Remove '#:tests? #f' and override the 'check'
phase.
[home-page]: Follow redirect.
Change-Id: I1fbb7c1eb06ab51082239f28e973a15064fbb6d5
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/django.scm | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index bbb26aabe02..5485786224b 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -1365,11 +1365,19 @@ provides features like a Web-browsable API and authentication policies.") (sha256 (base32 "1bfdag32yqjq3vqvyi9izdkmfcs2qip42rcmxpphqp0bmv5kdjia")))) - (build-system python-build-system) - (arguments '(#:tests? #f)) ; Tests not included with release. + (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" "--pythonpath=."))))))) + (native-inputs (list python-setuptools python-wheel)) (propagated-inputs (list python-django python-django-classy-tags)) - (home-page "https://github.com/divio/django-sekizai") + (home-page "https://github.com/django-cms/django-sekizai") (synopsis "Template blocks for Django projects") (description "Sekizai means blocks in Japanese, and that is what this app provides. A fresh look at blocks. With @code{django-sekizai} you can define |
