2024-06-05 07:29:27 -06:00
|
|
|
{
|
|
|
|
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=";
|
|
|
|
};
|
|
|
|
|
2024-07-14 17:02:14 -06:00
|
|
|
build-system = [ python3Packages.setuptools ];
|
2024-06-05 07:29:27 -06:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "cmakelint" ];
|
|
|
|
|
2024-07-14 17:02:14 -06:00
|
|
|
nativeCheckInputs = [
|
|
|
|
python3Packages.pytestCheckHook
|
2024-08-23 07:12:04 -06:00
|
|
|
python3Packages.pytest-cov-stub
|
2024-06-05 07:29:27 -06:00
|
|
|
];
|
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|