gnu: cpplint: Update to 1.5.5.

* gnu/packages/cpp.scm (cpplint): Update to 1.5.5.
[arguments]: Remove obsolete phase.  Override check phase.
[native-inputs]: Add PYTHON-COVERAGE and PYTHON-TESTFIXTURES.
This commit is contained in:
Marius Bakke 2022-02-09 22:28:12 +01:00
parent a87ec50b39
commit 6ff0a6d53a
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -74,6 +74,7 @@ (define-module (gnu packages cpp)
#:use-module (gnu packages onc-rpc) #:use-module (gnu packages onc-rpc)
#:use-module (gnu packages perl) #:use-module (gnu packages perl)
#:use-module (gnu packages python) #:use-module (gnu packages python)
#:use-module (gnu packages python-check)
#:use-module (gnu packages pkg-config) #:use-module (gnu packages pkg-config)
#:use-module (gnu packages popt) #:use-module (gnu packages popt)
#:use-module (gnu packages pretty-print) #:use-module (gnu packages pretty-print)
@ -766,7 +767,7 @@ (define-public cpp-httplib
(define-public cpplint (define-public cpplint
(package (package
(name "cpplint") (name "cpplint")
(version "1.4.5") (version "1.5.5")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -776,19 +777,22 @@ (define-public cpplint
(url "https://github.com/cpplint/cpplint") (url "https://github.com/cpplint/cpplint")
(commit version))) (commit version)))
(sha256 (sha256
(base32 "1yzcxqx0186sh80p0ydl9z0ld51fn2cdpz9hmhrp15j53g9ira7c")) (base32 "13l86aq0h1jga949k79k9x3hw2xqchjc162sclg2f99vz98zcz15"))
(file-name (git-file-name name version)))) (file-name (git-file-name name version))))
(arguments (arguments
`(#:phases (list #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-before 'check 'use-later-pytest (replace 'check
(lambda _ (lambda* (#:key tests? #:allow-other-keys)
(substitute* "test-requirements" (when tests?
(("pytest.*") "pytest\n")) (invoke "pytest" "-vv")))))))
#t)))))
(build-system python-build-system) (build-system python-build-system)
(native-inputs (native-inputs
(list python-pytest python-pytest-cov python-pytest-runner)) (list python-coverage
python-pytest
python-pytest-cov
python-pytest-runner
python-testfixtures))
(home-page "https://github.com/cpplint/cpplint") (home-page "https://github.com/cpplint/cpplint")
(synopsis "Static code checker for C++") (synopsis "Static code checker for C++")
(description "@code{cpplint} is a command-line tool to check C/C++ files (description "@code{cpplint} is a command-line tool to check C/C++ files