From 4935a704df9dccf6b0209117b96299faf27d7838 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 19 Sep 2025 14:37:45 +0100 Subject: [PATCH] gnu: python-testrepository: Update to 0.0.21. * gnu/packages/check.scm (python-testrepository): Update to 0.0.21. Don't inherit from python-testrepository as it's no longer required and migrate missing fields from it. [build-system]: Switch to pyproejct-build-system. [arguments] : All good now. : Use custom 'check. [propagated-inputs]: Remove python-testtools; add python-iso8601. [native-inputs]: Remove python-mimeparse; add python-hatch-vcs, python-hatchling, python-pytz, python-setuptools, python-testresources, and python-testscenarios. Change-Id: I460e73ceae61d61d0392621d0f5bd89b50238be8 --- gnu/packages/check.scm | 43 +++++++++++++++++++++++++++++++++--------- 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index b0a44b2cbfc3e78c9da6e750fb3b3cb89c216a88..857817a8ae297979d53c24452fcfb08d3c5d48c8 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -2375,18 +2375,43 @@ Python tests.") (define-public python-testrepository (package - (inherit python-testrepository-bootstrap) (name "python-testrepository") + (version "0.0.21") + (source + (origin + (method url-fetch) + (uri (pypi-uri "testrepository" version)) + (sha256 + (base32 "1nd36zf1gz7rp5qqqvw15d8lwcdwcigs4m6ppn4cdcwhw3vzr2in")))) + (build-system pyproject-build-system) (arguments - ;; FIXME: Many tests are failing. - '(#:tests? #f)) - (propagated-inputs - (list python-fixtures python-subunit python-testtools)) + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (setenv "HOME" "/tmp") + (invoke "./testr" "init") + (invoke "./testr" "run"))))))) (native-inputs - (list python-mimeparse)) - (description "Testrepository provides a database of test results which can -be used as part of a developer's workflow to check things such as what tests -have failed since the last commit or what tests are currently failing."))) + (list python-hatch-vcs + python-hatchling + python-pytz + python-setuptools + python-testresources + python-testscenarios)) + (propagated-inputs + (list python-fixtures + python-iso8601 + python-subunit)) + (home-page "https://github.com/testing-cabal/testrepository") + (synopsis "Database for Python test results") + (description + "Testrepository provides a database of test results which can be used as +part of a developer's workflow to check things such as what tests have failed +since the last commit or what tests are currently failing.") + (license (list license:bsd-3 license:asl2.0)))) ; at user's option (define-public python-coverage (package