ocamlPackages.hxd: 0.3.2 -> 0.3.3 (#364231)
[NixPkgs.git] / pkgs / by-name / cm / cmake-lint / package.nix
blobe58eff674d90b1dbab0ec7ff1ceb5a0a717f8c82
2   lib,
3   fetchFromGitHub,
4   python3Packages,
5   testers,
6   cmake-lint,
7 }:
9 python3Packages.buildPythonApplication rec {
10   pname = "cmake-lint";
11   version = "1.4.3";
12   pyproject = true;
14   src = fetchFromGitHub {
15     owner = "cmake-lint";
16     repo = "cmake-lint";
17     rev = "refs/tags/${version}";
18     hash = "sha256-/OuWwerBlJynEibaYo+jkLpHt4x9GZrqMRJNxgrDBlM=";
19   };
21   build-system = [ python3Packages.setuptools ];
23   pythonImportsCheck = [ "cmakelint" ];
25   nativeCheckInputs = [
26     python3Packages.pytestCheckHook
27     python3Packages.pytest-cov-stub
28   ];
30   passthru.tests = {
31     version = testers.testVersion { package = cmake-lint; };
32   };
34   meta = {
35     description = "Static code checker for CMake files";
36     homepage = "https://github.com/cmake-lint/cmake-lint";
37     changelog = "https://github.com/cmake-lint/cmake-lint/releases/tag/${version}";
38     license = lib.licenses.asl20;
39     maintainers = [ lib.maintainers.luftmensch-luftmensch ];
40     mainProgram = "cmakelint";
41   };