[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
19/23: gnu: python-openapi-spec-validator: Use pyproject-build-system.
From: |
guix-commits |
Subject: |
19/23: gnu: python-openapi-spec-validator: Use pyproject-build-system. |
Date: |
Thu, 27 Oct 2022 13:47:13 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 5e17453f189a7cb2958d50774e4e50686f0b6442
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Fri Oct 21 00:15:23 2022 +0200
gnu: python-openapi-spec-validator: Use pyproject-build-system.
* gnu/packages/python-web.scm (python-openapi-spec-validator)[build-system]:
Set to PYPROJECT-BUILD-SYSTEM.
[arguments]: Add #:test-flags. Remove obsolete phases.
[native-inputs]: Remove PYTHON-PYPA-BUILD.
---
gnu/packages/python-web.scm | 26 ++++++--------------------
1 file changed, 6 insertions(+), 20 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 370245de3a..cbc515fc64 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1643,33 +1643,19 @@ JSON Schema Specification Draft 2020-12.
(sha256
(base32
"1q09sjh4hsc0c8yqbd97h5mp6rwh427y6zyn8kv8wljk6sa0fs4q"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
(list
+ ;; The example tests attempt to fetch resources from the Internet
+ ;; (see: https://github.com/p1c2u/openapi-spec-validator/issues/151).
+ #:test-flags #~'("-vv" "-k" "not Example and not Exampe")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'remove-coverage-pytest-options
(lambda _
(substitute* "pyproject.toml"
- (("^--cov.*") ""))))
- ;; XXX: PEP 517 manual build copied from python-isort.
- (replace 'build
- (lambda _
- (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-vv"
- ;; The example tests attempt to fetch resources from
- ;; the Internet (see:
- ;;
https://github.com/p1c2u/openapi-spec-validator/issues/151).
- "-k" "not Example and not Exampe"))))
- (replace 'install
- (lambda _
- (let ((whl (car (find-files "dist" "\\.whl$"))))
- (invoke "pip" "--no-cache-dir" "--no-input"
- "install" "--no-deps" "--prefix" #$output whl)))))))
- (native-inputs (list python-poetry-core python-pypa-build python-pytest))
+ (("^--cov.*") "")))))))
+ (native-inputs (list python-poetry-core python-pytest))
(propagated-inputs
(list python-jsonschema
python-openapi-schema-validator
- 11/23: gnu: python-glyphslib: Use pyproject-build-system., (continued)
- 11/23: gnu: python-glyphslib: Use pyproject-build-system., guix-commits, 2022/10/27
- 17/23: gnu: zabbix-cli: Switch to pyproject-build-system., guix-commits, 2022/10/27
- 20/23: gnu: python-path: Use pyproject-build-system., guix-commits, 2022/10/27
- 09/23: gnu: python-pydyf: Use pyproject-build-system., guix-commits, 2022/10/27
- 04/23: gnu: pypy: Move to separate module., guix-commits, 2022/10/27
- 06/23: build-system: Add pyproject-build-system., guix-commits, 2022/10/27
- 12/23: gnu: python-statmake: Use pyproject-build-system., guix-commits, 2022/10/27
- 14/23: gnu: python-mypy-protobuf: Switch to pyproject-build-system., guix-commits, 2022/10/27
- 15/23: gnu: python-tempora: Switch to pyproject-build-system., guix-commits, 2022/10/27
- 16/23: gnu: python-pygmsh: Use pyproject-build-system., guix-commits, 2022/10/27
- 19/23: gnu: python-openapi-spec-validator: Use pyproject-build-system.,
guix-commits <=
- 21/23: gnu: python-cattrs: Use pyproject-build-system., guix-commits, 2022/10/27
- 22/23: gnu: python-scikit-build: Switch to pyproject-build-system., guix-commits, 2022/10/27
- 07/23: news: Add entry for 'pyproject-build-system'., guix-commits, 2022/10/27
- 18/23: gnu: python-openapi-schema-validator: Use pyproject-build-system., guix-commits, 2022/10/27
- 23/23: gnu: python-deepmerge: Use pyproject-build-system., guix-commits, 2022/10/27