guix_mirror_bot pushed a commit to branch master
in repository guix.

commit fa9df45168300e97d7c7adc4ea3a8d84d29f197e
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Nov 27 00:16:14 2025 +0000

    gnu: python-pytest-mockito: Update to 0.0.5.
    
    * gnu/packages/python-check.scm (python-pytest-mockito): Update to 0.0.5.
    [arguments] <phases>: Add 'set-version; use default 'check.
    [propagated-inputs]: Remove python-pytest.
    [native-inputs]: Add python-hatch-vcs, python-hatchling,
    python-pytest-bootstrap, and python-setuptools-scm.
    
    Change-Id: Ie6acb167416a8d236dd9c9533128a44ceae85589
---
 gnu/packages/python-check.scm | 43 +++++++++++++++++++++++++------------------
 1 file changed, 25 insertions(+), 18 deletions(-)

diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index a3ac64d706..833fd6bb38 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -3061,32 +3061,39 @@ access to test session metadata.")
 (define-public python-pytest-mockito
   (package
     (name "python-pytest-mockito")
-    (version "0.0.4")
+    (version "0.0.5")
     (source
      (origin
-       (method git-fetch)               ;no tests in pypi archive
+       (method git-fetch)
        (uri (git-reference
-             (url "https://github.com/kaste/pytest-mockito";)
-             (commit version)))
+              (url "https://github.com/kaste/pytest-mockito";)
+              (commit version)))
        (file-name (git-file-name name version))
        (sha256
-        (base32
-         "0hnpazaw3mglx1c405z2hkavgan99rqb3wgrcqk8x5kmhpay53xx"))))
-    (build-system python-build-system)
+        (base32 "0rq4mb1ycs3l1mpl682ybycvywmf4cp3vlrv9r1a9d2cb6qdwz8r"))))
+    (build-system pyproject-build-system)
     (arguments
-     '(#:phases
-       (modify-phases %standard-phases
-         (replace 'check
-           (lambda* (#:key tests? #:allow-other-keys)
-             (when tests?
-               (invoke "python" "-m" "pytest" "-vv")))))))
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'build 'set-version
+            (lambda _
+              (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
+    (native-inputs
+     (list python-hatch-vcs
+           python-hatchling
+           python-pytest-bootstrap
+           python-setuptools-scm))
     (propagated-inputs
-     (list python-mockito python-pytest))
+     (list python-mockito))
     (home-page "https://github.com/kaste/pytest-mockito";)
     (synopsis "Mockito base fixtures for Pytest")
-    (description "The @code{pytest-mockito} plugin provides base Mockito
-fixtures for Pytest.  It covers the main entry points of the Mockito mocking
-framework and makes it easy to undo any monkey patching.  The fixtures are:
+    (description
+     "The @code{pytest-mockito} plugin provides base Mockito fixtures for
+Pytest.  It covers the main entry points of the Mockito mocking framework and
+makes it easy to undo any monkey patching.
+
+The fixtures are:
 @itemize
 @item when
 @item when2
@@ -3095,7 +3102,7 @@ framework and makes it easy to undo any monkey patching.  
The fixtures are:
 @item unstub
 @item spy2
 @end itemize")
-    (license license:expat)))
+     (license license:expat)))
 
 (define-public python-pytest-mpi
   (package

Reply via email to