mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 03:55:08 -06:00
gnu: hydrus-network: Switch to pyproject.
* gnu/packages/image-viewers.scm (hydrus-network): [build-system]: Switch to pyproject-build-system. [arguments]<#:phases>: Rewrite 'check phase replacement. [native-inputs]: Add python-setuptools. Remove python-nose. Change-Id: Ibf6c4e5beacb220c66ede6991ae7b47d873c5c9a Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
parent
8d870bebc1
commit
d3c14a96b4
1 changed files with 8 additions and 10 deletions
|
|
@ -1188,7 +1188,7 @@ synchronization of multiple instances.")
|
|||
(snippet
|
||||
;; Remove pre-built binaries from bin/.
|
||||
#~(for-each delete-file (find-files "bin" "^swfrender")))))
|
||||
(build-system python-build-system)
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:phases
|
||||
|
|
@ -1198,11 +1198,12 @@ synchronization of multiple instances.")
|
|||
;; other build system to build itself - it's delivered ready to
|
||||
;; run from the source.
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(setenv "DISPLAY" ":0")
|
||||
(setenv "XDG_CACHE_HOME" (getcwd))
|
||||
(setenv "HOME" (getcwd))
|
||||
(invoke "xvfb-run" "python" "hydrus_test.py")))
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(setenv "DISPLAY" ":0")
|
||||
(setenv "XDG_CACHE_HOME" (getcwd))
|
||||
(setenv "HOME" (getcwd))
|
||||
(invoke "xvfb-run" "python" "hydrus_test.py"))))
|
||||
;; XXX: program help files are not built. Updating
|
||||
;; python-pymdown-extensions to its latest version might be the
|
||||
;; solution, but this would require also packaging its new build
|
||||
|
|
@ -1257,10 +1258,7 @@ synchronization of multiple instances.")
|
|||
(chmod server #o0555))))))))
|
||||
;; All native-inputs are only needed for the the check phase
|
||||
(native-inputs
|
||||
(list xvfb-run
|
||||
python-nose
|
||||
python-mock
|
||||
python-httmock))
|
||||
(list xvfb-run python-mock python-httmock python-setuptools))
|
||||
;; All python packages were taken from static/build_files/linux/requirements.txt
|
||||
(propagated-inputs
|
||||
(list python-beautifulsoup4
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue