~ruther/guix-local

0c26b52b4cef8e418f78a5bad80490b2ff3d9393 — Sharlatan Hellseher 10 months ago 43f439a
gnu: python-testscenarios-bootstrap: Simplify.

* gnu/packages/check.scm (python-testscenarios-bootstrap): Inherit from
python-testscenarios and make it hidden.

Change-Id: Ic15bf00f629a3c45dd1aee1e5ea704c2f0bcb03d
1 files changed, 12 insertions(+), 27 deletions(-)

M gnu/packages/check.scm
M gnu/packages/check.scm => gnu/packages/check.scm +12 -27
@@ 2199,33 2199,6 @@ see the output as well as any file modifications.")
provide matchers, more debugging information, and cross-Python
compatibility.")))

(define-public python-testscenarios-bootstrap
  (package
    (name "python-testscenarios-bootstrap")
    (version "0.5.0")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "testscenarios" version))
       (sha256
        (base32
         "1dm2aydqpv76vnsk1pw7k8n42hq58cfi4n1ixy7nyzpaj1mwnmy2"))))
    (build-system python-build-system)
    (arguments
     `(#:phases (modify-phases %standard-phases
                  (replace 'check
                    (lambda _
                      (invoke "python" "-m" "testtools.run"
                              "testscenarios.test_suite"))))))
    (propagated-inputs
     `(("python-pbr" ,python-pbr-minimal)
       ("python-testtools" ,python-testtools-bootstrap)))
    (home-page "https://launchpad.net/testscenarios")
    (synopsis "Pyunit extension for dependency injection")
    (description
     "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


@@ 2255,6 2228,18 @@ compatibility.")))
style tests.")
    (license (list license:bsd-3 license:asl2.0)))) ; at the user's option

(define-public python-testscenarios-bootstrap
  (hidden-package
   (package/inherit python-testscenarios
     (arguments
      ;; To break cycle with python-testtols and python-subunit.
      (list #:tests? #f
            #:phases
            #~(modify-phases %standard-phases
                (delete 'sanity-check))))
     (propagated-inputs
      (list python-pbr)))))

(define-public python-testresources
  (package
    (name "python-testresources")