Files
nixpkgs/pkgs/by-name/hn/hns/package.nix
2026-07-28 15:03:28 +00:00

47 lines
812 B
Nix

{
lib,
fetchFromGitHub,
python3,
}:
python3.pkgs.buildPythonApplication (finalAttrs: {
pname = "hns";
version = "1.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "primaprashant";
repo = "hns";
tag = finalAttrs.version;
hash = "sha256-A+vURHq6yqZqR6epYaABDu2w0LBC6nMAU1KZsAZZNrM=";
};
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
dwt
];
};
})