From 52a22ceb72fdb9c7ddb8a3e5a4021866d46b9400 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Fri, 23 Jan 2026 20:34:46 +0100 Subject: [PATCH] hns: init at 1.0.8 --- pkgs/by-name/hn/hns/package.nix | 43 +++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/by-name/hn/hns/package.nix diff --git a/pkgs/by-name/hn/hns/package.nix b/pkgs/by-name/hn/hns/package.nix new file mode 100644 index 000000000000..dd4072eb9e05 --- /dev/null +++ b/pkgs/by-name/hn/hns/package.nix @@ -0,0 +1,43 @@ +{ + lib, + fetchFromGitHub, + python3, +}: + +python3.pkgs.buildPythonApplication (finalAttrs: { + pname = "hns"; + version = "1.0.8"; + pyproject = true; + + src = fetchFromGitHub { + owner = "primaprashant"; + repo = "hns"; + tag = finalAttrs.version; + hash = "sha256-VO9EX8aIudijAyzTH9cXIa1magN+wkIE0lsP+DGl8hw="; + }; + + build-system = [ + python3.pkgs.hatchling + ]; + + dependencies = with python3.pkgs; [ + click + faster-whisper + numpy + pyperclip + requests + rich + sounddevice + ]; + + pythonImportsCheck = [ + "hns" + ]; + + meta = { + description = "Speech-to-text CLI to transcribe voice from microphone directly to clipboard"; + homepage = "https://hns-cli.dev"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ afh ]; + }; +})