nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit e13a90f8496a78c818efab1afab6c6b5cc0e338b
parent c8808d20e7bcb5b431011f189152dc8788a8db3b
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Tue,  4 Aug 2026 16:39:24 +0400

Add yt-cli

Diffstat:
Apkgs/by-name/yt/yt-cli/package.nix | 58++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+), 0 deletions(-)

diff --git a/pkgs/by-name/yt/yt-cli/package.nix b/pkgs/by-name/yt/yt-cli/package.nix @@ -0,0 +1,58 @@ +{ + stdenv, + lib, + fetchFromGitHub, + python3Packages, + installShellFiles, + writableTmpDirAsHomeHook, +}: + +python3Packages.buildPythonApplication (finalAttrs: { + pname = "yt-cli"; + version = "0.24.7"; + pyproject = true; + + src = fetchFromGitHub { + owner = "ryancheley"; + repo = "yt-cli"; + tag = "v${finalAttrs.version}"; + hash = "sha256-stkwJsioxZgWJ2sNrFkEIl6ZX9l+CNDQdpnH7ZPuuuw="; + }; + + build-system = with python3Packages; [ hatchling ]; + + dependencies = with python3Packages; [ + rich + textual + pydantic + click + httpx + python-dotenv + pydantic-settings + structlog + keyring + cryptography + ty + docker + ]; + + nativeBuildInputs = [ + installShellFiles + writableTmpDirAsHomeHook + ]; + + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' + installShellCompletion --cmd yt \ + --bash <($out/bin/yt completion bash) \ + --fish <($out/bin/yt completion fish) \ + --zsh <($out/bin/yt completion zsh) + ''; + + meta = { + description = "Command line interface for JetBrains YouTrack issue tracking system"; + homepage = "https://github.com/ryancheley/yt-cli"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.sikmir ]; + mainProgram = "yt"; + }; +})