1{
2 lib,
3 buildPythonApplication,
4 fetchPypi,
5 autopep8,
6 flake8,
7 jinja2,
8 pylint,
9 pyyaml,
10 six,
11}:
12
13buildPythonApplication rec {
14 pname = "cmake-format";
15 version = "0.6.13";
16 # The source distribution does not build because of missing files.
17 format = "wheel";
18
19 src = fetchPypi {
20 inherit version format;
21 python = "py3";
22 pname = "cmakelang";
23 sha256 = "0kmggnfbv6bba75l3zfzqwk0swi90brjka307m2kcz2w35kr8jvn";
24 };
25
26 propagatedBuildInputs = [
27 autopep8
28 flake8
29 jinja2
30 pylint
31 pyyaml
32 six
33 ];
34
35 doCheck = false;
36
37 meta = with lib; {
38 description = "Source code formatter for cmake listfiles";
39 homepage = "https://github.com/cheshirekow/cmake_format";
40 license = licenses.gpl3;
41 maintainers = [ maintainers.tobim ];
42 mainProgram = "cmake-format";
43 platforms = platforms.all;
44 };
45}