guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit ffd1ba71ea99b7c3149a3e1a3d3ff96c86611d19
Author: Nicolas Graves <[email protected]>
AuthorDate: Fri Oct 31 01:01:44 2025 +0100

    gnu: python-pytest-bootstrap: Move to (gnu packages python-build).
    
    * gnu/packages/check.scm (python-pytest-bootstrap): Move from here…
    * gnu/packages/python-build.scm (python-pytest-bootstrap): …to here.
    Redefine it to avoid inheritance.
    
    Change-Id: I1494221674cac649d7a3710f7877f51c640af4e3
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/check.scm        |  9 +--------
 gnu/packages/python-build.scm | 28 ++++++++++++++++++++++++++++
 2 files changed, 29 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index ea7867c57d..2c996ed01d 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1581,6 +1581,7 @@ interfaces and processes.")
 (define-public python-pytest
   (package
     (name "python-pytest")
+    ;; Keep in sync with python-pytest-bootstrap in (gnu packages python-build)
     (version "9.0.2")
     (source
      (origin
@@ -1625,14 +1626,6 @@ and functions, detailed info on failing assert 
statements, modular fixtures,
 and many external plugins.")
     (license license:expat)))
 
-(define-public python-pytest-bootstrap
-  (package/inherit python-pytest
-    (name "python-pytest-bootstrap")
-    (arguments (list #:tests? #f))
-    (native-inputs
-     (list python-setuptools
-           python-setuptools-scm))))
-
 (define-public python-pytest-cov
   (package
     (name "python-pytest-cov")
diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm
index b7638ec111..df26e27aa5 100644
--- a/gnu/packages/python-build.scm
+++ b/gnu/packages/python-build.scm
@@ -168,6 +168,34 @@ write-only counterpart to Tomli, which is a read-only TOML 
parser.")
      "Pygments is a syntax highlighting package written in Python.")
     (license license:bsd-2)))
 
+(define-public python-pytest-bootstrap
+  (package
+    (name "python-pytest-bootstrap")
+    (version "9.0.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pytest" version))
+       (sha256
+        (base32 "04fz1vbhb2l6k8lmrk8wqhkxhprlnkq21z6rs48rdn1bm58nc63m"))))
+    (build-system pyproject-build-system)
+    (arguments (list #:tests? #f))
+    (native-inputs
+     (list python-setuptools-bootstrap
+           python-setuptools-scm-bootstrap))
+    (propagated-inputs
+     (list python-iniconfig
+           python-packaging-bootstrap
+           python-pluggy
+           python-pygments-bootstrap))  ;it is in installation dependencies
+    (home-page "https://docs.pytest.org/en/latest/";)
+    (synopsis "Python testing library")
+    (description
+     "Pytest is a testing tool that provides auto-discovery of test modules
+and functions, detailed info on failing assert statements, modular fixtures,
+and many external plugins.")
+    (license license:expat)))
+
 (define-public python-pytoml
   (package
     (name "python-pytoml")

Reply via email to