diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-04-23 21:51:01 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-04-23 23:12:23 +0100 |
| commit | 0bb526a57373b82b8b121fe34cb614fe24c8191e (patch) | |
| tree | 6ac6bf0f1907f1176f612e9f6a74a03c9cf46ab7 | |
| parent | 3f3478bd615536510d2510d8174c04d948162300 (diff) | |
gnu: python-stestr: Update to 4.1.0.
* gnu/packages/python-check.scm (python-stestr): Update to 4.1.0.
[build-system]: Switch to pyproject.
[arguments] <tests?>: Enable them.
<phases>: Use custom 'check.
[propagated-inputs]: Remove python-future; add python-tomlkit.
[native-inputs]: Remove python-pbr; add python-ddt, python-iso8601,
python-setuptools, and python-wheel.
Change-Id: I058fb17c46c91a4e21f0797544a4a02e3c706b05
| -rw-r--r-- | gnu/packages/python-check.scm | 42 |
1 files changed, 30 insertions, 12 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index bb53a3730a..5e7752442b 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -3150,34 +3150,52 @@ manipulating JSON Object. You can manipulate your JSON object using JSONPath") (define-public python-stestr (package (name "python-stestr") - (version "3.2.1") + ;; XXX: The latest version needs flit-core=>3.12. + (version "4.1.0") (source (origin (method url-fetch) (uri (pypi-uri "stestr" version)) (sha256 - (base32 - "1kg9gfdr4bj2m7s1r44z530a0ba4p17j4jlhcn1xha0j8jmyfgn2")))) - (build-system python-build-system) + (base32 "12p96kzanzzssr6z4hq6k62pdbsql4mf369ms69c4qyfxrlw6qaz")))) + (build-system pyproject-build-system) (arguments - `(#:tests? #f)) ;to avoid circular dependencies + (list + #:test-flags + ;; Two tets fail. + #~(list "--exclude-regex" (string-join + (list "test_initialise_expands_user_directory" + "test_open_expands_user_directory") + "|")) + #:phases + #~(modify-phases %standard-phases + ;; TODO: Implement in pypproject-build-system's test-backends. + (replace 'check + (lambda* (#:key tests? test-flags #:allow-other-keys) + (when tests? + (let ((stestr (string-append #$output "/bin/stestr"))) + (apply invoke stestr "run" test-flags)))))))) (native-inputs - (list python-pbr)) + (list python-ddt + python-iso8601 + python-setuptools + python-wheel)) (propagated-inputs (list python-cliff python-fixtures - python-future python-pyyaml python-subunit python-testtools + python-tomlkit python-voluptuous)) (home-page "https://stestr.readthedocs.io/en/latest/") (synopsis "Parallel Python test runner") - (description "This package provides the @command{stestr} command, a -parallel Python test runner built around @code{subunit}. It is designed to -execute @code{unittest} test suites using multiple processes to split up -execution of a test suite. It will also store a history of all test runs to -help in debugging failures and optimizing the scheduler to improve speed.") + (description + "This package provides the @command{stestr} command, a parallel Python +test runner built around @code{subunit}. It is designed to execute +@code{unittest} test suites using multiple processes to split up execution of +a test suite. It will also store a history of all test runs to help in +debugging failures and optimizing the scheduler to improve speed.") (license license:asl2.0))) (define-public python-sybil |
