diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-19 12:38:07 +0100 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-20 16:18:47 +0100 |
commit | a5b7601d0666c9c716fff0383e51c34e4f581d0e (patch) | |
tree | 73f04a94e1d704a427f40edcc74189b40c4d4d30 | |
parent | 8bb00217ac756b2fe69dd1a659d8ceeaac44f4b9 (diff) |
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
-rw-r--r-- | gnu/packages/check.scm | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 1a840f58da..d9e11982e8 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 |