From 43f439a5dd764c93c594a06151a6894d28581941 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 19 Sep 2025 12:38:07 +0100 Subject: [PATCH] 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 --- gnu/packages/check.scm | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 1a840f58da0abe2eccba1491184ed10e6e82e0f0..d9e11982e816bd5fb16a54a532e16503a627d747 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -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