summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-11-27 00:16:14 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-11-27 19:41:27 +0000
commitfa9df45168300e97d7c7adc4ea3a8d84d29f197e (patch)
tree680671674635c2bf874168a695030aff96c50eea /gnu
parent6a85c6fb1c88af188d0f9e183437f0dae236b9eb (diff)
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
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-check.scm43
1 files changed, 25 insertions, 18 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index a3ac64d706d..833fd6bb387 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