mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-14 11:00:36 +02:00
gnu: cpplint: Use pyproject-build-system.
* gnu/packages/cpp.scm (cpplint)[build-system]: Use pyproject-build-system. [arguments]: Remove custom 'check phase. Change-Id: I270de2cafe75ef2d7280dee884a0aeb060f2aa32
This commit is contained in:
parent
061c7bc1ca
commit
7244fb26bd
1 changed files with 5 additions and 8 deletions
|
@ -67,6 +67,7 @@
|
||||||
#:use-module (guix build-system gnu)
|
#:use-module (guix build-system gnu)
|
||||||
#:use-module (guix build-system meson)
|
#:use-module (guix build-system meson)
|
||||||
#:use-module (guix build-system python)
|
#:use-module (guix build-system python)
|
||||||
|
#:use-module (guix build-system pyproject)
|
||||||
#:use-module (guix build-system scons)
|
#:use-module (guix build-system scons)
|
||||||
#:use-module (guix modules)
|
#:use-module (guix modules)
|
||||||
#:use-module (guix gexp)
|
#:use-module (guix gexp)
|
||||||
|
@ -1156,12 +1157,13 @@ library.")
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "13l86aq0h1jga949k79k9x3hw2xqchjc162sclg2f99vz98zcz15"))
|
(base32 "13l86aq0h1jga949k79k9x3hw2xqchjc162sclg2f99vz98zcz15"))
|
||||||
(file-name (git-file-name name version))))
|
(file-name (git-file-name name version))))
|
||||||
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list #:modules `((srfi srfi-1)
|
(list #:modules `((srfi srfi-1)
|
||||||
(srfi srfi-26)
|
(srfi srfi-26)
|
||||||
,@%python-build-system-modules)
|
,@%pyproject-build-system-modules)
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases (@ (guix build python-build-system) %standard-phases)
|
#~(modify-phases (@ (guix build pyproject-build-system) %standard-phases)
|
||||||
(add-before 'wrap 'reduce-GUIX_PYTHONPATH
|
(add-before 'wrap 'reduce-GUIX_PYTHONPATH
|
||||||
(lambda _
|
(lambda _
|
||||||
;; Hide the transitive native inputs from GUIX_PYTHONPATH
|
;; Hide the transitive native inputs from GUIX_PYTHONPATH
|
||||||
|
@ -1185,12 +1187,7 @@ library.")
|
||||||
(add-after 'wrap 'reset-GUIX_PYTHONPATH
|
(add-after 'wrap 'reset-GUIX_PYTHONPATH
|
||||||
(lambda _
|
(lambda _
|
||||||
(setenv "GUIX_PYTHONPATH"
|
(setenv "GUIX_PYTHONPATH"
|
||||||
(getenv "TMP_PYTHONPATH"))))
|
(getenv "TMP_PYTHONPATH")))))))
|
||||||
(replace 'check
|
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
|
||||||
(when tests?
|
|
||||||
(invoke "pytest" "-vv")))))))
|
|
||||||
(build-system python-build-system)
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-coverage
|
(list python-coverage
|
||||||
python-pytest
|
python-pytest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue