~ruther/guix-local

b352ce65c3fbccaa43e9e2e1ad5097a7dd6c790d — Sharlatan Hellseher 7 months ago 3a1f566
gnu: python-fixtures: Update to 4.2.6.

* gnu/packages/check.scm (python-fixtures): Update to 4.2.6. Don't
inherit from python-fixtures-bootstrap as it's no longer required and
migrate missing fields from it.
[build-system]: Switch to pyproject-build-system.
[arguments] <phases>: Use default 'check.
[propagated-inputs]: Remove python-pbr, python-six, and python-extras.
[native-inputs]: Remove python-mock; add python-hatch-vcs and
python-hatchling.

Change-Id: I46eb61748ee345cd5e51056070d2210f2d787bb8
1 files changed, 15 insertions(+), 15 deletions(-)

M gnu/packages/check.scm
M gnu/packages/check.scm => gnu/packages/check.scm +15 -15
@@ 2341,25 2341,25 @@ python-fixtures package instead.")

(define-public python-fixtures
  (package
    (inherit python-fixtures-bootstrap)
    (name "python-fixtures")
    (arguments
     '(#:phases
       (modify-phases %standard-phases
         (replace 'check
           (lambda* (#:key tests? #:allow-other-keys)
             (when tests?
               (invoke "python" "-m" "testtools.run"
                       "fixtures.test_suite")))))))
    (propagated-inputs
     ;; Fixtures uses pbr at runtime to check versions, etc.
     (list python-pbr python-six python-extras))
    (version "4.2.6")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "fixtures" version))
       (sha256
        (base32 "02y92rnl2vyjcbc31mcpxkxjky6g9hjb2cxy5xkkl1j5n4ajniwm"))))
    (build-system pyproject-build-system)
    (native-inputs
     `(("python-mock" ,python-mock)
       ("python-testtools" ,python-testtools-bootstrap)))
     (list python-hatch-vcs
           python-hatchling
           python-testtools-bootstrap))
    (home-page "https://github.com/testing-cabal/fixtures")
    (synopsis "Python test fixture library")
    (description
     "Fixtures provides a way to create reusable state, useful when writing
Python tests.")))
Python tests.")
    (license (list license:bsd-3 license:asl2.0)))) ; at user's option

(define-public python-testrepository-bootstrap
  (package