mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-29 19:30:11 +00:00
47 lines
812 B
Nix
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
|
|
];
|
|
};
|
|
})
|