mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-pypujs: Improve package style.
* gnu/packages/python-xyz.scm (python-pypujs): Improve package style. [arguments]<#:test-flags>: Use it in place of check phase replacement. <#:phases>: Clarify phase disable-pyramid. Change-Id: If8073cc4e9a8a86003000e7157985fe382de7b4f Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
parent
9816aae543
commit
a735883a37
1 changed files with 5 additions and 10 deletions
|
@ -6748,18 +6748,13 @@ templates. A format string can be provided to control the output.")
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
|
#:test-flags '(list "pypugjs/testsuite/")
|
||||||
#:phases #~(modify-phases %standard-phases
|
#:phases #~(modify-phases %standard-phases
|
||||||
;; Our pyramid is outdated and pyramid-mako is not packaged.
|
|
||||||
(add-after 'unpack 'disable-pyramid
|
(add-after 'unpack 'disable-pyramid
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda _
|
||||||
(substitute* "setup.py"
|
;; pyramid is outdated and pyramid-mako is unpackaged.
|
||||||
(("'pyramid")
|
(substitute* "setup.cfg"
|
||||||
"#'pyramid"))))
|
(("'(pyramid|pyramid-mako)[^']*',") "")))))))
|
||||||
(replace 'check
|
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
|
||||||
(when tests?
|
|
||||||
(invoke "python" "-m" "pytest" "-v"
|
|
||||||
"pypugjs/testsuite/")))))))
|
|
||||||
(native-inputs (list python-coverage
|
(native-inputs (list python-coverage
|
||||||
python-django
|
python-django
|
||||||
python-jinja2
|
python-jinja2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue