depot/third_party/nixpkgs/pkgs/development/tools/cmake-format/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

37 lines
816 B
Nix

{ lib
, buildPythonApplication
, fetchPypi
, autopep8
, flake8
, jinja2
, pylint
, pyyaml
, six
}:
buildPythonApplication rec {
pname = "cmake-format";
version = "0.6.13";
# The source distribution does not build because of missing files.
format = "wheel";
src = fetchPypi {
inherit version format;
python = "py3";
pname = "cmakelang";
sha256 = "0kmggnfbv6bba75l3zfzqwk0swi90brjka307m2kcz2w35kr8jvn";
};
propagatedBuildInputs = [ autopep8 flake8 jinja2 pylint pyyaml six ];
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 ];
mainProgram = "cmake-format";
platforms = platforms.all;
};
}