2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchPypi
|
|
|
|
, autopep8
|
|
|
|
, flake8
|
|
|
|
, jinja2
|
|
|
|
, pylint
|
|
|
|
, pyyaml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "cmake-format";
|
2020-05-03 17:38:23 +00:00
|
|
|
version = "0.6.10";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "cmake_format";
|
2020-05-03 17:38:23 +00:00
|
|
|
sha256 = "14ypplkjah4hcb1ad8978xip4vvzxy1nkysvyi1wn9b24cbfzw42";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ autopep8 flake8 jinja2 pylint pyyaml ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Source code formatter for cmake listfiles";
|
|
|
|
homepage = "https://github.com/cheshirekow/cmake_format";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.tobim ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|