[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
307/474: gnu: python-pytest-mock: Update to 3.14.0.
From: |
guix-commits |
Subject: |
307/474: gnu: python-pytest-mock: Update to 3.14.0. |
Date: |
Sat, 30 Nov 2024 18:20:43 -0500 (EST) |
sharlatan pushed a commit to branch python-team
in repository guix.
commit b9891a9f64f010e3006b87b0e8e32f75ff5db97d
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 5fc9767df1..cb5a385515 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/")
- 287/474: gnu: poetry: Fix build., (continued)
- 287/474: gnu: poetry: Fix build., guix-commits, 2024/11/30
- 290/474: gnu: Add python-rgbxy., guix-commits, 2024/11/30
- 292/474: gnu: beets-bandcamp: Add maintenance note., guix-commits, 2024/11/30
- 297/474: gnu: python-exceptiongroup: Move to python-build., guix-commits, 2024/11/30
- 296/474: gnu: python-pluggy: Update to 1.5.0., guix-commits, 2024/11/30
- 295/474: gnu: python-fast-histogram: Adjust inputs., guix-commits, 2024/11/30
- 299/474: gnu: Remove python-pytest-8., guix-commits, 2024/11/30
- 301/474: gnu: Remove python-pluggy-next., guix-commits, 2024/11/30
- 302/474: gnu: python-ptyprocess: Update to 0.7.0., guix-commits, 2024/11/30
- 306/474: gnu: python-pytest-forked: Disable tests., guix-commits, 2024/11/30
- 307/474: gnu: python-pytest-mock: Update to 3.14.0.,
guix-commits <=
- 308/474: gnu: python-filelock: Update to 3.16.1., guix-commits, 2024/11/30
- 309/474: gnu: python-pytest-xdist: Update to 3.6.1., guix-commits, 2024/11/30
- 310/474: gnu: python-coverage: Update to 7.6.7., guix-commits, 2024/11/30
- 312/474: gnu: python-pytest-xprocess: Update to 1.0.2., guix-commits, 2024/11/30
- 313/474: gnu: python-openpyxl: Update to 3.1.5., guix-commits, 2024/11/30
- 314/474: gnu: python-cffi: Update to 1.17.1., guix-commits, 2024/11/30
- 315/474: gnu: python-cffi: Improve package style., guix-commits, 2024/11/30
- 316/474: gnu: python-curio: Update to 1.6., guix-commits, 2024/11/30
- 318/474: gnu: python-jedi: Update to 0.19.2., guix-commits, 2024/11/30
- 323/474: gnu: python-tomli: Update to 2.1.0., guix-commits, 2024/11/30