~ruther/guix-local

8637351f27e50b596b4df84d25c13d8772c30527 — Sharlatan Hellseher 5 months ago f4778e7
gnu: python-syrupy: Update to 5.0.0.

* gnu/packages/python-check.scm (python-syrupy): Update to 5.0.0.
[arguments] <test-backend>: Use 'custom.
<phases>: Use default 'check.
[native-inputs]: Remove python-debugpy, python-twine, and python-pytest;
add python-pytest-bootstrap.

Change-Id: I8f0f0e22338ae5c412e68467db4dc6718a64ab7d
1 files changed, 6 insertions(+), 13 deletions(-)

M gnu/packages/python-check.scm
M gnu/packages/python-check.scm => gnu/packages/python-check.scm +6 -13
@@ 4182,31 4182,24 @@ provided for the main Python test runners.")
(define-public python-syrupy
  (package
    (name "python-syrupy")
    (version "4.9.1")
    (version "5.0.0")
    (source
     (origin
       (method git-fetch)               ;no tests in PyPI archive
       (method git-fetch)
       (uri (git-reference
              (url "https://github.com/syrupy-project/syrupy")
              (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "10q1xdwbcy9jfq8gd4r9q4r2p2zpcfrh4yj58nl9sbr2nc3irbh0"))))
        (base32 "1ysm42an2pf4ppd1i5yzh11bq1rfydhg6rmmh5v91gcixpvi872d"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          (replace 'check
            (lambda* (#:key tests? #:allow-other-keys)
              (when tests?
                (invoke "invoke" "test")))))))
     (list #:test-backend #~'custom
           #:test-flags #~(list "-m" "invoke" "test")))
    (native-inputs
     (list python-invoke
           python-debugpy
           python-twine
           python-poetry-core
           python-pytest
           python-pytest-bootstrap
           python-pytest-xdist
           python-setuptools-scm))
    (home-page "https://github.com/syrupy-project/syrupy")