about summary refs log tree commit diff
path: root/pkgs/by-name/ka
diff options
context:
space:
mode:
authorPascal Bach <pascal.bach@nextrem.ch>2023-08-30 21:48:50 +0200
committerPascal Bach <pascal.bach@nextrem.ch>2023-12-17 13:34:19 +0100
commitf1f12bc39a1b69ec0e89e6dc7945f473e569da6b (patch)
tree0f838a0f3ea5962a8bb46730a670e604428e3159 /pkgs/by-name/ka
parente33bfdfbfda267080bccd43c72ef3bdf28936f6e (diff)
kas: init at 4.1
Diffstat (limited to 'pkgs/by-name/ka')
-rw-r--r--pkgs/by-name/ka/kas/package.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/by-name/ka/kas/package.nix b/pkgs/by-name/ka/kas/package.nix
new file mode 100644
index 0000000000000..d2b0622267943
--- /dev/null
+++ b/pkgs/by-name/ka/kas/package.nix
@@ -0,0 +1,29 @@
+{ lib, fetchFromGitHub, python3, testers, kas }:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "kas";
+  version = "4.1";
+
+  src = fetchFromGitHub {
+    owner = "siemens";
+    repo = pname;
+    rev = "refs/tags/${version}";
+    hash = "sha256-EYz9V45b7fSKoI8w9X0LcSTojErpJHfzxcdE4I4qD2k=";
+  };
+
+  propagatedBuildInputs = with python3.pkgs; [ setuptools kconfiglib jsonschema distro pyyaml ];
+
+  # Tests require network as they try to clone repos
+  doCheck = false;
+  passthru.tests.version = testers.testVersion {
+    package = kas;
+    command = "${pname} --version";
+  };
+
+  meta = with lib; {
+    homepage = "https://github.com/siemens/kas";
+    description = "Setup tool for bitbake based projects";
+    license = licenses.mit;
+    maintainers = with maintainers; [ bachp ];
+  };
+}