~ruther/guix-local

d3c14a96b466c102d290b4edf9b4858680e5e693 — Nicolas Graves 3 months ago 8d870be
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>
1 files changed, 8 insertions(+), 10 deletions(-)

M gnu/packages/image-viewers.scm
M gnu/packages/image-viewers.scm => gnu/packages/image-viewers.scm +8 -10
@@ 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