me
/
guix
Archived
1
0
Fork 0

gnu: python-openapi-schema-validator: Use pyproject-build-system.

* gnu/packages/python-web.scm (python-openapi-schema-validator)[build-system]:
Set to PYPROJECT-BUILD-SYSTEM.
[arguments]: Remove redundant phases.
[native-inputs]: Remove PYTHON-PYPA-BUILD.
Marius Bakke 2022-10-21 00:12:03 +02:00
parent 7b499ef116
commit 3c685772de
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 4 additions and 16 deletions

View File

@ -79,6 +79,7 @@
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix git-download) #:use-module (guix git-download)
#:use-module (guix build-system copy) #:use-module (guix build-system copy)
#:use-module (guix build-system pyproject)
#:use-module (guix build-system python) #:use-module (guix build-system python)
#:use-module (guix gexp) #:use-module (guix gexp)
#:use-module (guix utils) #:use-module (guix utils)
@ -1601,7 +1602,7 @@ is Pythons.")
(sha256 (sha256
(base32 (base32
"1swm8h74nhg63nxk347blwq9f1qn6iiq3zisndcvm7axkq3pc2df")))) "1swm8h74nhg63nxk347blwq9f1qn6iiq3zisndcvm7axkq3pc2df"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list
#:phases #:phases
@ -1609,21 +1610,8 @@ is Pythons.")
(add-after 'unpack 'remove-coverage-pytest-options (add-after 'unpack 'remove-coverage-pytest-options
(lambda _ (lambda _
(substitute* "pyproject.toml" (substitute* "pyproject.toml"
(("^--cov.*") "")))) (("^--cov.*") "")))))))
;; XXX: PEP 517 manual build copied from python-isort. (native-inputs (list python-poetry-core python-pytest))
(replace 'build
(lambda _
(invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest"))))
(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))
(propagated-inputs (propagated-inputs
(list python-isodate (list python-isodate
python-jsonschema python-jsonschema