From 7244fb26bd155e5c04601029b7774b8defbe64aa Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Sat, 20 Apr 2024 00:20:00 +0200 Subject: 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 --- gnu/packages/cpp.scm | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'gnu/packages/cpp.scm') diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 77083e9a19..8a0bd62d6b 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -67,6 +67,7 @@ (define-module (gnu packages cpp) #:use-module (guix build-system gnu) #:use-module (guix build-system meson) #:use-module (guix build-system python) + #:use-module (guix build-system pyproject) #:use-module (guix build-system scons) #:use-module (guix modules) #:use-module (guix gexp) @@ -1156,12 +1157,13 @@ (define-public cpplint (sha256 (base32 "13l86aq0h1jga949k79k9x3hw2xqchjc162sclg2f99vz98zcz15")) (file-name (git-file-name name version)))) + (build-system pyproject-build-system) (arguments (list #:modules `((srfi srfi-1) (srfi srfi-26) - ,@%python-build-system-modules) + ,@%pyproject-build-system-modules) #: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 (lambda _ ;; Hide the transitive native inputs from GUIX_PYTHONPATH @@ -1185,12 +1187,7 @@ (define-public cpplint (add-after 'wrap 'reset-GUIX_PYTHONPATH (lambda _ (setenv "GUIX_PYTHONPATH" - (getenv "TMP_PYTHONPATH")))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "pytest" "-vv"))))))) - (build-system python-build-system) + (getenv "TMP_PYTHONPATH"))))))) (native-inputs (list python-coverage python-pytest -- cgit v1.2.3