~ruther/guix-local

3581d9d3bdf741f9231a415d8b22cf42d9ba9f13 — Sharlatan Hellseher 2 years ago c5b399c
gnu: python-tldr: Swap to pyproject-build-system.

* gnu/packages/python-xyz.scm (python-tldr) [build-system]: Swap to
pyproject-build-system.
[arguments]: Adjust indentation.
<#:test-flags>: Move test exclusion here.
<#:phases>: Use standard 'check phase.

Change-Id: Ie87b5810027998bf33325c04021dbeb7cb24e6e2
1 files changed, 9 insertions(+), 11 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +9 -11
@@ 27698,18 27698,16 @@ Public Suffix List's private domains as well.")
       (file-name (git-file-name name version))
       (sha256
        (base32 "15mab6a7ph2rviy5f2ypid6qdbb583fvaf5zhd6q0nrggxx0kkcm"))))
    (build-system python-build-system)
    (build-system pyproject-build-system)
    (arguments
     (list #:phases
           #~(modify-phases %standard-phases
               (add-after 'build 'build-doc
                 (lambda _
                   (invoke "make" "-C" "docs")))
               (replace 'check
                 (lambda* (#:key tests? #:allow-other-keys)
                   (when tests?
                     ;; This test fails. It tries to open a network socket.
                     (invoke "pytest" "-vv" "-k" "not test_error_message")))))))
     (list
      ;; This test fails. It tries to open a network socket.
      #:test-flags #~(list "-k" "not test_error_message")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'build 'build-doc
            (lambda _
              (invoke "make" "-C" "docs"))))))
    (native-inputs
     (list python-pytest
           python-pytest-runner