~ruther/guix-local

4935a704df9dccf6b0209117b96299faf27d7838 — Sharlatan Hellseher 9 months ago 16b5580
gnu: python-testrepository: Update to 0.0.21.

* gnu/packages/check.scm (python-testrepository): Update to 0.0.21.
Don't inherit from python-testrepository as it's no longer required and
migrate missing fields from it.
[build-system]: Switch to pyproejct-build-system.
[arguments] <tests?>: All good now.
<phases>: Use custom 'check.
[propagated-inputs]: Remove python-testtools; add python-iso8601.
[native-inputs]: Remove python-mimeparse; add python-hatch-vcs,
python-hatchling, python-pytz, python-setuptools, python-testresources,
and python-testscenarios.

Change-Id: I460e73ceae61d61d0392621d0f5bd89b50238be8
1 files changed, 34 insertions(+), 9 deletions(-)

M gnu/packages/check.scm
M gnu/packages/check.scm => gnu/packages/check.scm +34 -9
@@ 2375,18 2375,43 @@ Python tests.")

(define-public python-testrepository
  (package
    (inherit python-testrepository-bootstrap)
    (name "python-testrepository")
    (version "0.0.21")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "testrepository" version))
       (sha256
        (base32 "1nd36zf1gz7rp5qqqvw15d8lwcdwcigs4m6ppn4cdcwhw3vzr2in"))))
    (build-system pyproject-build-system)
    (arguments
     ;; FIXME: Many tests are failing.
     '(#:tests? #f))
    (propagated-inputs
     (list python-fixtures python-subunit python-testtools))
     (list
      #:phases
      #~(modify-phases %standard-phases
          (replace 'check
            (lambda* (#:key tests? #:allow-other-keys)
              (when tests?
                (setenv "HOME" "/tmp")
                (invoke "./testr" "init")
                (invoke "./testr" "run")))))))
    (native-inputs
     (list python-mimeparse))
    (description "Testrepository provides a database of test results which can
be used as part of a developer's workflow to check things such as what tests
have failed since the last commit or what tests are currently failing.")))
     (list python-hatch-vcs
           python-hatchling
           python-pytz
           python-setuptools
           python-testresources
           python-testscenarios))
    (propagated-inputs
     (list python-fixtures
           python-iso8601
           python-subunit))
    (home-page "https://github.com/testing-cabal/testrepository")
    (synopsis "Database for Python test results")
    (description
     "Testrepository provides a database of test results which can be used as
part of a developer's workflow to check things such as what tests have failed
since the last commit or what tests are currently failing.")
    (license (list license:bsd-3 license:asl2.0)))) ; at user's option

(define-public python-coverage
  (package