mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-nbstripout: Move to pyproject-build-system.
* gnu/packages/jupyter.scm (python-nbstripout): [build-system]: Move to pyproject-build-system. [arguments]: Convert 'check replacement phase from <#:phases> to <#:test-flags>. Use gexp. Change-Id: I4d97b0739c43371c149296b23951cb2c17129840 Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
parent
2b028a5bf0
commit
8851c55b53
1 changed files with 12 additions and 14 deletions
|
@ -860,21 +860,19 @@ nbshow present a single notebook in a terminal-friendly way
|
|||
(sha256
|
||||
(base32
|
||||
"1n57nvxsc94gz9w8ymi83bjkfhfwkpmx4y14m6gjrmlqd49m1aw6"))))
|
||||
(build-system python-build-system)
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
'(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'delete-bad-tests
|
||||
(lambda _
|
||||
;; These tests use git and hg, and they are sensitive to the
|
||||
;; exact printed output.
|
||||
(for-each delete-file (list "tests/test-git.t"
|
||||
"tests/test-hg.t"
|
||||
"tests/test-status.t"
|
||||
"tests/test-uninstall.t"))))
|
||||
(add-before 'check 'set-CRAMSHELL
|
||||
(lambda _
|
||||
(setenv "CRAMSHELL" (which "bash")))))))
|
||||
(list
|
||||
;; These tests use git and hg, and they are sensitive to the
|
||||
;; exact printed output.
|
||||
#:test-flags '(map (lambda (test)
|
||||
(string-append "--ignore=tests/test-" test ".t"))
|
||||
'("git" "hg" "status" "uninstall"))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-before 'check 'set-CRAMSHELL
|
||||
(lambda _
|
||||
(setenv "CRAMSHELL" (which "bash")))))))
|
||||
(propagated-inputs (list python-nbformat))
|
||||
(native-inputs
|
||||
(list python-pytest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue