about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/ka/kas/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/by-name/ka/kas/package.nix')
-rw-r--r--nixpkgs/pkgs/by-name/ka/kas/package.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/ka/kas/package.nix b/nixpkgs/pkgs/by-name/ka/kas/package.nix
new file mode 100644
index 000000000000..d2b062226794
--- /dev/null
+++ b/nixpkgs/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 ];
+  };
+}