Merge pull request #90556 from jonringer/bump-cpplint

cpplint: 1.3.0 -> 1.5.1
This commit is contained in:
Benjamin Hipple 2020-06-15 22:55:42 -04:00 committed by GitHub
commit 46d4ffa6ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,20 +2,21 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "cpplint"; pname = "cpplint";
version = "1.3.0"; version = "1.5.1";
# Fetch from github instead of pypi, since the test cases are not in the pypi archive # Fetch from github instead of pypi, since the test cases are not in the pypi archive
src = fetchFromGitHub { src = fetchFromGitHub {
owner = pname; owner = pname;
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "107v7bp35kxbv9v7wl79h7115z1m4b48rhasp0cnivql1grd277i"; sha256 = "0k927mycj1k4l3fbxrk597bhcjl2nrpaas1imbjgk64cyq8dv7lh";
}; };
postPatch = '' postPatch = ''
patchShebangs cpplint_unittest.py patchShebangs cpplint_unittest.py
''; '';
checkInputs = with python3Packages; [ pytest pytestrunner ];
checkPhase = '' checkPhase = ''
./cpplint_unittest.py ./cpplint_unittest.py
''; '';