diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-08-25 20:09:39 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-02 21:13:19 +0100 |
| commit | df3d8bdd9bbac453b453eab5090d5cd4c90bd949 (patch) | |
| tree | ccb5917791450fd6d870f7b26f37f57f6c8982c9 | |
| parent | 3fa2014c1fb08ef61501d3a90175bc919e29d389 (diff) | |
gnu: python-pytest-helpers-namespace: Switch to pyproject.
* gnu/packages/python-check.scm (python-pytest-helpers-namespace):
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Remove 'check phase replacement. Add
'set-version phase.
[native-inputs]: Add python-wheel.
[description]: Run guix style.
Change-Id: I868b710a45d0663697354b8590667486afd9fbf7
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/packages/python-check.scm | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 1a3b259fe9d..f4e6840ca23 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -2390,29 +2390,30 @@ times and detect flakyness.") (version "2021.3.24") (source (origin - (method url-fetch) - (uri (pypi-uri "pytest-helpers-namespace" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/saltstack/pytest-helpers-namespace") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 - "0pyj2d45zagmzlajzqdnkw5yz8k49pkihbydsqkzm413qnkzb38q")))) - (build-system python-build-system) + (base32 "0ikwiwp9ycgg7px78nxdkqvg7j97krb6vzqlb8fq8fvbwrj4q4v2")))) + (build-system pyproject-build-system) (arguments (list #:phases #~(modify-phases %standard-phases - (replace 'check - (lambda* (#:key inputs outputs #:allow-other-keys) - ;; Make the installed plugin discoverable by Pytest. - (add-installed-pythonpath inputs outputs) - (invoke "pytest" "-vv")))))) - (native-inputs - (list python-pytest python-setuptools ; needs setuptools >= 50.3.2 - python-setuptools-scm python-setuptools-declarative-requirements)) + (add-after 'unpack 'set-version + (lambda _ + (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))))) + (native-inputs (list python-pytest python-setuptools python-setuptools-scm + python-setuptools-declarative-requirements + python-wheel)) (home-page "https://github.com/saltstack/pytest-helpers-namespace") (synopsis "Pytest Helpers Namespace Plugin") - (description "Pytest Helpers Namespace Plugin provides a helpers pytest -namespace which can be used to register helper functions without requiring -someone to import them in their actual tests to use them.") + (description + "Pytest Helpers Namespace Plugin provides a helpers pytest namespace +which can be used to register helper functions without requiring someone to +import them in their actual tests to use them.") (license license:asl2.0))) (define-public python-pytest-html |
