about summary refs log tree commit diff
path: root/pkgs/by-name/ka
diff options
context:
space:
mode:
authorPeder Bergebakken Sundt2024-06-08 15:34:30 +0200
committerGitHub2024-06-08 15:34:30 +0200
commitd48102ba12c0cf8c9dd6023c53dca85f83f561c0 (patch)
tree97ee4aa2fe0a7c971f0c76c4ec7b74f5995dcccf /pkgs/by-name/ka
parent19a48432b1d7361b87ab0a858a0377c90fef413f (diff)
parentc7317a582b9a6ac69061b9930a400ab767d59932 (diff)
Merge pull request #289359 from IogaMaster/kalamine
kalamine: init at 0.22
Diffstat (limited to 'pkgs/by-name/ka')
-rw-r--r--pkgs/by-name/ka/kalamine/package.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/by-name/ka/kalamine/package.nix b/pkgs/by-name/ka/kalamine/package.nix
new file mode 100644
index 000000000000..6f7ae19795aa
--- /dev/null
+++ b/pkgs/by-name/ka/kalamine/package.nix
@@ -0,0 +1,38 @@
+{ lib
+, python3
+, fetchFromGitHub
+}:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "kalamine";
+  version = "0.22";
+  pyproject = true;
+
+  src = fetchFromGitHub {
+    owner = "OneDeadKey";
+    repo = "kalamine";
+    rev = "v${version}";
+    hash = "sha256-SPXVFeysVF/6RqjhXmlPc+3m5vnVndJb7LQshQZBeg8=";
+  };
+
+  nativeBuildInputs = [
+    python3.pkgs.hatchling
+  ];
+
+  propagatedBuildInputs = with python3.pkgs; [
+    click
+    lxml
+    pyyaml
+    tomli
+  ];
+
+  pythonImportsCheck = [ "kalamine" ];
+
+  meta = with lib; {
+    description = "Keyboard Layout Maker";
+    homepage = "https://github.com/OneDeadKey/kalamine/";
+    license = licenses.mit;
+    maintainers = with maintainers; [ iogamaster ];
+    mainProgram = "kalamine";
+  };
+}