[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
391/474: gnu: python-pytest-mypy-plugins: Update to 3.1.2.
From: |
guix-commits |
Subject: |
391/474: gnu: python-pytest-mypy-plugins: Update to 3.1.2. |
Date: |
Sat, 30 Nov 2024 18:21:01 -0500 (EST) |
sharlatan pushed a commit to branch python-team
in repository guix.
commit b1a8cfe70a3ed1e0f6522651a7df6265bf5a54ed
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Sat Nov 23 14:37:06 2024 +0000
gnu: python-pytest-mypy-plugins: Update to 3.1.2.
* gnu/packages/check.scm (python-pytest-mypy-plugins): Update to 3.1.2.
Improe package style.
[arguments]<tests>: Enable the most of the tests.
<phases>: Use custom 'check phase.
[propagated-inputs]: Remove python-chevron and python-setuptools; add
python-jinja2, python-jsonschema, python-packaging, and python-tomlkit.
[native-inputs]: Add python-setuptools.
Change-Id: Ice79f75706bf57b97e8e0e8a3b6a54cd6be03946
---
gnu/packages/check.scm | 54 +++++++++++++++++++++++++++++++++++---------------
1 file changed, 38 insertions(+), 16 deletions(-)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index e22d436c79..8f7cc94b1f 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -2981,23 +2981,45 @@ a Pytest test execution.")
(define-public python-pytest-mypy-plugins
(package
(name "python-pytest-mypy-plugins")
- (version "1.10.1")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "pytest-mypy-plugins" version))
- (sha256
- (base32
- "05ng29b05gasqj195i9hyyhx5shmwypyvajb7plxwha3g36qq98z"))))
+ (version "3.1.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-mypy-plugins" version))
+ (sha256
+ (base32 "1gpynypn13032by633dr2zhng54v2gl09kwgp3ysc4wpwl09pyhl"))))
(build-system pyproject-build-system)
- (arguments (list #:tests? #false)) ;there are none
- (propagated-inputs (list python-chevron
- python-decorator
- python-mypy
- python-pytest
- python-pyyaml
- python-setuptools
- python-regex))
- (native-inputs (list python-wheel))
+ (arguments
+ (list
+ #:test-flags
+ #~(list "-k" (string-join
+ (list "not reveal_type_extension_is_loaded"
+ "test_pyproject_toml"
+ "test_ini_files")
+ " and not "))
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; Tests failed to run in project's root directory:
+ ;; ModuleNotFoundError: No module named 'pytest_mypy_plugins.tests'
+ (replace 'check
+ (lambda* (#:key tests? test-flags #:allow-other-keys)
+ (when tests?
+ (setenv "HOME" "/tmp")
+ (with-directory-excursion "/tmp"
+ (apply invoke "pytest" "-v" test-flags))))))))
+ (native-inputs
+ (list python-setuptools
+ python-wheel))
+ (propagated-inputs
+ (list python-decorator
+ python-jinja2
+ python-jsonschema
+ python-mypy
+ python-packaging
+ python-pytest
+ python-pyyaml
+ python-regex
+ python-tomlkit))
(home-page "https://github.com/TypedDjango/pytest-mypy-plugins")
(synopsis "Pytest plugin for writing tests for mypy plugins")
(description "This package provides a pytest plugin for writing tests for
- 365/474: gnu: python-pytest-flake8: Update to 1.3.0., (continued)
- 365/474: gnu: python-pytest-flake8: Update to 1.3.0., guix-commits, 2024/11/30
- 343/474: gnu: python-beautifulsoup4: Update to 4.12.3., guix-commits, 2024/11/30
- 361/474: gnu: python-pytest-asyncio: Update to 0.24.0., guix-commits, 2024/11/30
- 347/474: gnu: python-itsdangerous: Update to 2.2.0., guix-commits, 2024/11/30
- 355/474: gnu: python-apispec-webframeworks: Update to 1.2.0., guix-commits, 2024/11/30
- 362/474: gnu: python-tinycss2: Update to 1.4.0., guix-commits, 2024/11/30
- 366/474: gnu: python-pytest-doctestplus: Update to 1.2.1., guix-commits, 2024/11/30
- 377/474: gnu: python-jupyter-core: Fix tests., guix-commits, 2024/11/30
- 385/474: gnu: python-trio: Update to 0.27.0., guix-commits, 2024/11/30
- 386/474: gnu: python-pytest-trio: Update to 0.8.0., guix-commits, 2024/11/30
- 391/474: gnu: python-pytest-mypy-plugins: Update to 3.1.2.,
guix-commits <=
- 392/474: gnu: python-loguru: Update to 0.7.2., guix-commits, 2024/11/30
- 389/474: gnu: python-tornado-6: Update to 6.4.2., guix-commits, 2024/11/30
- 390/474: gnu: python-tenacity: Update to 9.0.0., guix-commits, 2024/11/30
- 395/474: gnu: python-ecdsa: Update to 0.19.0., guix-commits, 2024/11/30
- 402/474: gnu: python-aiofiles: Fix indentation., guix-commits, 2024/11/30
- 400/474: gnu: python-redis: Fix build., guix-commits, 2024/11/30
- 404/474: gnu: python-anyio: Update to 4.6.2., guix-commits, 2024/11/30
- 406/474: gnu: python-a2wsgi: Update to 1.10.7., guix-commits, 2024/11/30
- 408/474: gnu: python-starlette: Update to 0.41.3., guix-commits, 2024/11/30
- 410/474: gnu: python-betamax: Update to 0.9.0., guix-commits, 2024/11/30