2019-06-28 08:12:47 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchPypi
|
|
|
|
, autopep8
|
|
|
|
, flake8
|
|
|
|
, jinja2
|
|
|
|
, pylint
|
|
|
|
, pyyaml
|
2021-04-03 16:45:40 +01:00
|
|
|
, six
|
2019-06-28 08:12:47 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "cmake-format";
|
2020-08-20 10:19:28 +01:00
|
|
|
version = "0.6.13";
|
|
|
|
# The source distribution does not build because of missing files.
|
|
|
|
format = "wheel";
|
2019-06-28 08:12:47 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2020-08-20 10:19:28 +01:00
|
|
|
inherit version format;
|
|
|
|
python = "py3";
|
|
|
|
pname = "cmakelang";
|
|
|
|
sha256 = "0kmggnfbv6bba75l3zfzqwk0swi90brjka307m2kcz2w35kr8jvn";
|
2019-06-28 08:12:47 +01:00
|
|
|
};
|
|
|
|
|
2021-04-03 16:45:40 +01:00
|
|
|
propagatedBuildInputs = [ autopep8 flake8 jinja2 pylint pyyaml six ];
|
2019-06-28 08:12:47 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|