~ruther/guix-local

6c870fec9287e0d3d9d0e3739ad0b85f7fae4789 — Sharlatan Hellseher 7 months ago b352ce6
gnu: python-testresources: Update to 2.0.2.

* gnu/packages/check.scm (python-testresources): Update to 2.0.2. Don't
inherit from python-testresources-bootstrap as it's no longer required
and migrate missing fields from it.
[build-system]: Switch to pyproject-build-system.
[arguments] <test-backend>: Use custom.
<test-flags>: Provide options to run tests with testtools.
[native-inputs]: Add python-setuptools.
[home-page]: Fix it, taken from PyPI <https://pypi.org/project/testresources/>

Change-Id: I0e5dabcf2803c375f493d736c4b78f5c038023e8
1 files changed, 20 insertions(+), 5 deletions(-)

M gnu/packages/check.scm
M gnu/packages/check.scm => gnu/packages/check.scm +20 -5
@@ 2262,16 2262,31 @@ testresources package instead.")

(define-public python-testresources
  (package
    (inherit python-testresources-bootstrap)
    (name "python-testresources")
    (version "2.0.2")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "testresources" version))
       (sha256
        (base32 "1v7a3mzi461v4cw4qil094j39wzn8hk10jkm9gi9ybmb01z3vgrc"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:test-backend #~'custom
      #:test-flags #~(list "-m" "testtools.run" "discover")))
    (native-inputs
     (list python-fixtures
           python-setuptools
           python-testtools))
    (propagated-inputs
     (list python-pbr))
    (arguments '())
    (native-inputs
     (list python-fixtures python-testtools))
    (home-page "https://github.com/testing-cabal/testresources")
    (synopsis "Pyunit extension for managing test resources")
    (description
     "Testresources is an extension to Python's unittest to allow declarative
use of resources by test cases.")))
use of resources by test cases.")
    (license (list license:bsd-3 license:asl2.0)))) ; at the user's option

(define-public python-subunit-bootstrap
  (package