~ruther/guix-local

43f439a5dd764c93c594a06151a6894d28581941 — Sharlatan Hellseher 6 months ago fbbd2d2
gnu: python-testscenarios: Switch to pyproject.

* gnu/packages/check.scm (python-testscenarios): Don't inherit from
python-testscenarios-bootstrap as it's no longer required and migrate
missing fields from it.
[build-system]: Switch to pyproject-build-system.
[native-inputs]: Add python-setuptools.

Change-Id: I7bb79f69b806d45896f29c86210096c4fb5bffb7
1 files changed, 22 insertions(+), 3 deletions(-)

M gnu/packages/check.scm
M gnu/packages/check.scm => gnu/packages/check.scm +22 -3
@@ 2226,15 2226,34 @@ compatibility.")))
     "This package is only for bootstrapping.  Don't use this.")
    (license (list license:bsd-3 license:asl2.0)))) ; at the user's option

;; XXX: The project is not maintained since 2015, consider to remove when
;; nothing depends on it.
(define-public python-testscenarios
  (package
    (inherit python-testscenarios-bootstrap)
    (name "python-testscenarios")
    (version "0.5.0")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "testscenarios" version))
       (sha256
        (base32 "1dm2aydqpv76vnsk1pw7k8n42hq58cfi4n1ixy7nyzpaj1mwnmy2"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:test-backend #~'custom
      #:test-flags #~(list "-m" "testtools.run" "testscenarios.test_suite")))
    (native-inputs
     (list python-setuptools))
    (propagated-inputs
     (list python-pbr python-testtools))
     (list python-pbr
           python-testtools))
    (home-page "https://launchpad.net/testscenarios")
    (synopsis "Pyunit extension for dependency injection")
    (description
     "Testscenarios provides clean dependency injection for Python unittest
style tests.")))
style tests.")
    (license (list license:bsd-3 license:asl2.0)))) ; at the user's option

(define-public python-testresources
  (package