at 22.05-pre 760 B view raw
1{ lib, python3Packages, fetchFromGitHub }: 2 3python3Packages.buildPythonApplication rec { 4 pname = "cpplint"; 5 version = "1.5.1"; 6 7 # Fetch from github instead of pypi, since the test cases are not in the pypi archive 8 src = fetchFromGitHub { 9 owner = pname; 10 repo = pname; 11 rev = version; 12 sha256 = "0k927mycj1k4l3fbxrk597bhcjl2nrpaas1imbjgk64cyq8dv7lh"; 13 }; 14 15 postPatch = '' 16 patchShebangs cpplint_unittest.py 17 ''; 18 19 checkInputs = with python3Packages; [ pytest pytest-runner ]; 20 checkPhase = '' 21 ./cpplint_unittest.py 22 ''; 23 24 meta = with lib; { 25 homepage = "https://github.com/cpplint/cpplint"; 26 description = "Static code checker for C++"; 27 maintainers = [ maintainers.bhipple ]; 28 license = [ licenses.bsd3 ]; 29 }; 30}