2019-11-13 14:39:03 +00:00
|
|
|
{ lib, python3Packages, fetchFromGitHub }:
|
2018-10-04 02:17:18 +01:00
|
|
|
|
2019-11-13 14:39:03 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2018-10-04 02:17:18 +01:00
|
|
|
pname = "cpplint";
|
2020-06-16 01:50:53 +01:00
|
|
|
version = "1.5.1";
|
2018-10-04 02:17:18 +01:00
|
|
|
|
|
|
|
# Fetch from github instead of pypi, since the test cases are not in the pypi archive
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-06-16 01:50:53 +01:00
|
|
|
sha256 = "0k927mycj1k4l3fbxrk597bhcjl2nrpaas1imbjgk64cyq8dv7lh";
|
2018-10-04 02:17:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs cpplint_unittest.py
|
|
|
|
'';
|
|
|
|
|
2020-06-16 01:50:53 +01:00
|
|
|
checkInputs = with python3Packages; [ pytest pytestrunner ];
|
2018-10-04 02:17:18 +01:00
|
|
|
checkPhase = ''
|
|
|
|
./cpplint_unittest.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/cpplint/cpplint";
|
2018-10-04 02:17:18 +01:00
|
|
|
description = "Static code checker for C++";
|
|
|
|
maintainers = [ maintainers.bhipple ];
|
|
|
|
license = [ licenses.bsd3 ];
|
|
|
|
};
|
|
|
|
}
|