From ee86d16ee2b8e4b5de40ff3b7845306cd6428eb2 Mon Sep 17 00:00:00 2001 From: genga Date: Sat, 18 Jan 2025 12:27:07 +0300 Subject: [PATCH] pq-cli: init at 1.0.2-unstable-2024-07-15 pq-cli: update pq-cli: add unstableGitUpdater --- pkgs/by-name/pq/pq-cli/package.nix | 46 ++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 pkgs/by-name/pq/pq-cli/package.nix diff --git a/pkgs/by-name/pq/pq-cli/package.nix b/pkgs/by-name/pq/pq-cli/package.nix new file mode 100644 index 000000000000..d9e3ee1bc276 --- /dev/null +++ b/pkgs/by-name/pq/pq-cli/package.nix @@ -0,0 +1,46 @@ +{ + lib, + fetchFromGitHub, + python3Packages, + unstableGitUpdater, +}: + +python3Packages.buildPythonApplication rec { + pname = "pq-cli"; + version = "1.0.2-unstable-2024-07-15"; + pyproject = true; + + src = fetchFromGitHub { + owner = "rr-"; + repo = "pq-cli"; + rev = "4122e936c87436552f35ff7972d6e543ba6c837b"; + hash = "sha256-PvHkTjPjOubhl9gfPTF7yNaFgg2GLk8y+PtF09fpaII="; + }; + + build-system = with python3Packages; [ + setuptools + poetry-core + ]; + + dependencies = with python3Packages; [ + xdg + xdg-base-dirs + urwid + urwid-readline + ]; + + pythonRelaxDeps = [ + "urwid-readline" + ]; + + passthru.updateScript = unstableGitUpdater { }; + + meta = { + description = "Progress Quest: the CLI edition"; + homepage = "https://github.com/rr-/pq-cli"; + changelog = "https://github.com/rr-/pq-cli/releases/tag/${version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ genga898 ]; + mainProgram = "pqcli"; + }; +}