mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
Merge pull request #317455 from luftmensch-luftmensch/cmake-lint_1.4.3
cmake-lint: init at 1.4.3
This commit is contained in:
46
pkgs/by-name/cm/cmake-lint/package.nix
Normal file
46
pkgs/by-name/cm/cmake-lint/package.nix
Normal file
@@ -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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user