From 0c26b52b4cef8e418f78a5bad80490b2ff3d9393 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 19 Sep 2025 12:57:17 +0100 Subject: [PATCH] gnu: python-testscenarios-bootstrap: Simplify. * gnu/packages/check.scm (python-testscenarios-bootstrap): Inherit from python-testscenarios and make it hidden. Change-Id: Ic15bf00f629a3c45dd1aee1e5ea704c2f0bcb03d --- gnu/packages/check.scm | 39 ++++++++++++--------------------------- 1 file changed, 12 insertions(+), 27 deletions(-) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index d9e11982e816bd5fb16a54a532e16503a627d747..8965a9e5c240c07625d56303cf153ddcf4323100 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -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")