[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
308/361: gnu: python-pytest-mock: Update to 3.14.0.
From: |
guix-commits |
Subject: |
308/361: gnu: python-pytest-mock: Update to 3.14.0. |
Date: |
Fri, 22 Nov 2024 06:01:04 -0500 (EST) |
andreas pushed a commit to branch python-team
in repository guix.
commit 1e50d5b1521149c720ec0efec10d407b4bf19466
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Tue Nov 12 08:06:10 2024 +0000
gnu: python-pytest-mock: Update to 3.14.0.
* gnu/packages/check.scm (python-pytest-mock): Update to
3.14.0. Simplify package.
[snippet]: Remove it.
[build-system]: Swap to pyproject-build-system.
[argument]<phases>: Use default 'check phase.
[native-inputs]: Add python-setuptools and python-wheel.
Change-Id: Ia7eb5d6ee6a10de53a106909946e90b72b12fe99
---
gnu/packages/check.scm | 35 +++++++++++------------------------
1 file changed, 11 insertions(+), 24 deletions(-)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 1da6038445..0aa1fe9933 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -2008,37 +2008,24 @@ Python's @code{random.seed}.")
(define-public python-pytest-mock
(package
(name "python-pytest-mock")
- (version "3.10.0")
+ (version "3.14.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pytest-mock" version))
(sha256
- (base32 "0kzdwwdjw001qzf1n4qzh7c364rvmb0cmkfqdwr2l9bwxy2v1ggv"))
- (modules '((guix build utils)))
- (snippet
- ;; Some tests do a string match on Pytest output, and fails when
- ;; warnings are present. Adjust to cope with warnings from
- ;; third-party libraries (looking at you, pytest-asyncio).
- '(substitute* "tests/test_pytest_mock.py"
- (("1 passed in \\*")
- "1 passed*")))))
- (build-system python-build-system)
+ (base32 "1l0b864arbzrq13z635l1x9ial0w7pgz6svd0nyavkpy3rd2a697"))))
+ (build-system pyproject-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- ;; Skip the assertion rewriting tests, which don't work in the
- ;; presence of read-only Python modules (a limitation of
- ;; Pytest). Also skip the "test_standalone_mock" test, which
- ;; can only work when 'python-mock' is not available
- ;; (currently propagated by Pytest 5).
- (invoke "pytest" "--assert=plain" "-vv"
- "-k" "not test_standalone_mock")))))))
+ (list
+ ;; Skip the assertion rewriting tests, which don't work in the presence
+ ;; of read-only Python modules (a limitation of Pytest).
+ #:test-flags #~(list "--assert=plain")))
(native-inputs
- (list python-pytest-asyncio python-setuptools-scm))
+ (list python-pytest-asyncio
+ python-setuptools
+ python-setuptools-scm
+ python-wheel))
(propagated-inputs
(list python-pytest))
(home-page "https://github.com/pytest-dev/pytest-mock/")
- 319/361: gnu: python-jedi: Update to 0.19.2., (continued)
- 319/361: gnu: python-jedi: Update to 0.19.2., guix-commits, 2024/11/22
- 340/361: gnu: python-werkzeug: Update to 3.1.3., guix-commits, 2024/11/22
- 356/361: gnu: python-apispec-webframeworks: Update to 1.2.0., guix-commits, 2024/11/22
- 361/361: gnu: python-pydantic: Update to 1.10.19., guix-commits, 2024/11/22
- 355/361: gnu: Remove python-flask-jwt., guix-commits, 2024/11/22
- 266/361: gnu: python-nose-exclude: Adjust iputs., guix-commits, 2024/11/22
- 292/361: gnu: Add python-rich-tables., guix-commits, 2024/11/22
- 298/361: gnu: python-exceptiongroup: Move to python-build., guix-commits, 2024/11/22
- 306/361: gnu: python-pytest-timeout: Update to 2.3.1., guix-commits, 2024/11/22
- 309/361: gnu: python-filelock: Update to 3.16.1., guix-commits, 2024/11/22
- 308/361: gnu: python-pytest-mock: Update to 3.14.0.,
guix-commits <=
- 310/361: gnu: python-pytest-xdist: Update to 3.6.1., guix-commits, 2024/11/22
- 314/361: gnu: python-openpyxl: Update to 3.1.5., guix-commits, 2024/11/22
- 322/361: gnu: python-execnet: Update to 2.1.1., guix-commits, 2024/11/22
- 325/361: gnu: python-trove-classifiers: Update to 2024.10.21.16., guix-commits, 2024/11/22
- 327/361: gnu: python-editables: Update to 0.5., guix-commits, 2024/11/22
- 341/361: gnu: python-pytest-localserver: Update to 0.9.0.post0., guix-commits, 2024/11/22
- 347/361: gnu: python-blinker: Update to 1.9.0., guix-commits, 2024/11/22
- 354/361: gnu: python-flasgger: Update to 0.9.7.1., guix-commits, 2024/11/22
- 135/361: gnu: python-ipywidgets: Update to 8.1.2., guix-commits, 2024/11/22
- 220/361: gnu: build-system/pyproject: Add missing native-inputs., guix-commits, 2024/11/22