diff options
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"; + }; +} |