From 6c870fec9287e0d3d9d0e3739ad0b85f7fae4789 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 19 Sep 2025 12:26:25 +0100 Subject: [PATCH] gnu: python-testresources: Update to 2.0.2. * gnu/packages/check.scm (python-testresources): Update to 2.0.2. Don't inherit from python-testresources-bootstrap as it's no longer required and migrate missing fields from it. [build-system]: Switch to pyproject-build-system. [arguments] : Use custom. : Provide options to run tests with testtools. [native-inputs]: Add python-setuptools. [home-page]: Fix it, taken from PyPI Change-Id: I0e5dabcf2803c375f493d736c4b78f5c038023e8 --- gnu/packages/check.scm | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index ca5b75b0961b781b520a32877f4b0c3c1b0179eb..f330faee43907f6430d30b78160cdd3b098b2e52 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -2262,16 +2262,31 @@ testresources package instead.") (define-public python-testresources (package - (inherit python-testresources-bootstrap) (name "python-testresources") + (version "2.0.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "testresources" version)) + (sha256 + (base32 "1v7a3mzi461v4cw4qil094j39wzn8hk10jkm9gi9ybmb01z3vgrc")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-backend #~'custom + #:test-flags #~(list "-m" "testtools.run" "discover"))) + (native-inputs + (list python-fixtures + python-setuptools + python-testtools)) (propagated-inputs (list python-pbr)) - (arguments '()) - (native-inputs - (list python-fixtures python-testtools)) + (home-page "https://github.com/testing-cabal/testresources") + (synopsis "Pyunit extension for managing test resources") (description "Testresources is an extension to Python's unittest to allow declarative -use of resources by test cases."))) +use of resources by test cases.") + (license (list license:bsd-3 license:asl2.0)))) ; at the user's option (define-public python-subunit-bootstrap (package