summaryrefslogtreecommitdiff
path: root/gnu/packages/cpp.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-03-31 08:18:47 +0200
committerAndreas Enge <andreas@enge.fr>2025-04-16 11:46:25 +0200
commitb0c6e6017e219bd6c722380bc95661c48fffc404 (patch)
tree04621fa3cc09087248c5de7bd44e6e4229a2c5aa /gnu/packages/cpp.scm
parent29661328c7271769bf34e95345c4cef6c6438ad1 (diff)
gnu: cpplint: Update to 2.0.0.
* gnu/packages/cpp.scm (cpplint): Update to 2.0.0. [arguments]{phases}: Add phase 'patch-build-system. [native-inputs]: Add python-parameterized, python-pytest-timeout. Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/cpp.scm')
-rw-r--r--gnu/packages/cpp.scm11
1 files changed, 9 insertions, 2 deletions
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index 5338577c3f..ccfa5b684d 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -1606,7 +1606,7 @@ library.")
(define-public cpplint
(package
(name "cpplint")
- (version "1.5.5")
+ (version "2.0.0")
(source
(origin
(method git-fetch)
@@ -1616,7 +1616,7 @@ library.")
(url "https://github.com/cpplint/cpplint")
(commit version)))
(sha256
- (base32 "13l86aq0h1jga949k79k9x3hw2xqchjc162sclg2f99vz98zcz15"))
+ (base32 "06km4wh4944az1hk61g5w8pjhbvbccpgarz1dy7vhwkhfvmvggnk"))
(file-name (git-file-name name version))))
(build-system pyproject-build-system)
(arguments
@@ -1625,6 +1625,11 @@ library.")
,@%pyproject-build-system-modules)
#:phases
#~(modify-phases (@ (guix build pyproject-build-system) %standard-phases)
+ (add-after 'unpack 'patch-build-system
+ (lambda _
+ (substitute* "pyproject.toml"
+ (("setuptools\\.build_meta:__legacy__")
+ "setuptools.build_meta"))))
(add-before 'wrap 'reduce-GUIX_PYTHONPATH
(lambda _
;; Hide the transitive native inputs from GUIX_PYTHONPATH
@@ -1651,9 +1656,11 @@ library.")
(getenv "TMP_PYTHONPATH")))))))
(native-inputs
(list python-coverage
+ python-parameterized
python-pytest
python-pytest-cov
python-pytest-runner
+ python-pytest-timeout
python-setuptools
python-testfixtures
python-wheel))