snippet.host

minimal text and code snippet hosting

welcome, guest. why not login or register?

Howto disable guix's build phase "check", when building custom Python packages

created: language: scheme views: 95 size: 1.21 KiB lines: 33 clone raw download
# This attempt also did not work. Guix's pyproject-build-system still runs the check phase.

(arguments
`(#:phases
(modify-phases %standard-phases
(lambda* (#:key outputs #:allow-other-keys)
(delete 'check)
#t))))

# And none of these other configurations prevents Guix's pyproject-build-system from running the check phase.

(arguments `(#:tests? #false))

(arguments
`(#:tests? #false
#:phases
(modify-phases python:%standard-phases
(delete 'check))))

(arguments
`(#:tests? #false
#:phases
(modify-phases python:%standard-phases
(replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(invoke "echo noop"))))))

# Code is here. What could be the root cause for why the guix build system ignoring these configurations?
# https://github.com/twashing/dotfiles/blob/35b932ad10b1c9c0a822ac56ecab88f2ecde8b72/guix/packages/dirsearch.scm#L46-L60

# . The syntax looks correct.
# . There's no similar syntax (that I know of) shadowing the one that I've made.
# . I've run guix pull, to be on the latest version.