1{
2 lib,
3 fetchFromGitHub,
4 python3Packages,
5}:
6
7python3Packages.buildPythonApplication rec {
8 pname = "cppclean";
9 version = "0.13";
10 format = "pyproject";
11
12 src = fetchFromGitHub {
13 owner = "myint";
14 repo = "cppclean";
15 rev = "v${version}";
16 sha256 = "081bw7kkl7mh3vwyrmdfrk3fgq8k5laacx7hz8fjpchrvdrkqph0";
17 };
18
19 postUnpack = ''
20 patchShebangs .
21 '';
22
23 build-system = with python3Packages; [
24 setuptools
25 ];
26
27 checkPhase = ''
28 ./test.bash
29 '';
30
31 meta = with lib; {
32 description = "Finds problems in C++ source that slow development of large code bases";
33 mainProgram = "cppclean";
34 homepage = "https://github.com/myint/cppclean";
35 license = licenses.asl20;
36 maintainers = with maintainers; [ nthorne ];
37 platforms = platforms.linux;
38 };
39}