about summary refs log tree commit diff
path: root/pkgs/by-name/cm
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2024-06-10 18:01:13 +0000
committerGitHub <noreply@github.com>2024-06-10 18:01:13 +0000
commit0cc78468fa5ead3bc4689c8f0085cdb7b88ab743 (patch)
tree544806febfc5b0b210ae95d2d99e42d4d740be66 /pkgs/by-name/cm
parent4b24ae6c36e2f666258ec360bc021c438b23a0f5 (diff)
parent98cc4fc3126f684e078b6292d3ade84baaae89be (diff)
Merge master into staging-next
Diffstat (limited to 'pkgs/by-name/cm')
-rw-r--r--pkgs/by-name/cm/cmake-lint/package.nix46
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";
+  };
+}