diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2024-06-10 17:18:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-10 17:18:13 +0200 |
commit | 557f4359f327c65aa9eb620b96e25f1ae1fa6484 (patch) | |
tree | 5919a8910c4826d01d9e323bdd22bba2d153973f /pkgs/by-name/cm | |
parent | e8dc88026d234b608ea82802d63e14870b94ae2f (diff) | |
parent | d13628ee2bde4d9f3ea17d033f26b69ac8c01ac1 (diff) |
Merge pull request #317455 from luftmensch-luftmensch/cmake-lint_1.4.3
cmake-lint: init at 1.4.3
Diffstat (limited to 'pkgs/by-name/cm')
-rw-r--r-- | pkgs/by-name/cm/cmake-lint/package.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/by-name/cm/cmake-lint/package.nix b/pkgs/by-name/cm/cmake-lint/package.nix new file mode 100644 index 0000000000000..b683a0aaa8c51 --- /dev/null +++ b/pkgs/by-name/cm/cmake-lint/package.nix @@ -0,0 +1,46 @@ +{ + lib, + fetchFromGitHub, + python3Packages, + testers, + cmake-lint, +}: + +python3Packages.buildPythonApplication rec { + pname = "cmake-lint"; + version = "1.4.3"; + pyproject = true; + + src = fetchFromGitHub { + owner = "cmake-lint"; + repo = "cmake-lint"; + rev = "refs/tags/${version}"; + hash = "sha256-/OuWwerBlJynEibaYo+jkLpHt4x9GZrqMRJNxgrDBlM="; + }; + + nativeBuildInputs = [ python3Packages.setuptools ]; + + pythonImportsCheck = [ "cmakelint" ]; + + nativeCheckInputs = with python3Packages; [ + pytestCheckHook + nose + ]; + + checkPhase = '' + nosetests + ''; + + passthru.tests = { + version = testers.testVersion { package = cmake-lint; }; + }; + + meta = { + description = "Static code checker for CMake files"; + homepage = "https://github.com/cmake-lint/cmake-lint"; + changelog = "https://github.com/cmake-lint/cmake-lint/releases/tag/${version}"; + license = lib.licenses.asl20; + maintainers = [ lib.maintainers.luftmensch-luftmensch ]; + mainProgram = "cmakelint"; + }; +} |