From 135109926a3f11510d6f340ea9c8880385a0438f Mon Sep 17 00:00:00 2001 From: Jorik Date: Sat, 2 Nov 2024 15:19:53 +0100 Subject: [PATCH] posting: init at 2.3.0 --- pkgs/by-name/po/posting/package.nix | 50 +++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 pkgs/by-name/po/posting/package.nix diff --git a/pkgs/by-name/po/posting/package.nix b/pkgs/by-name/po/posting/package.nix new file mode 100644 index 0000000000000..ec534e1906a90 --- /dev/null +++ b/pkgs/by-name/po/posting/package.nix @@ -0,0 +1,50 @@ +{ + lib, + fetchFromGitHub, + python3Packages, +}: +let +in +python3Packages.buildPythonApplication rec { + pname = "posting"; + version = "2.3.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "darrenburns"; + repo = "posting"; + rev = "refs/tags/${version}"; + sha256 = "sha256-lL85gJxFw8/e8Js+UCE9VxBMcmWRUkHh8Cq5wTC93KA="; + }; + + pythonRelaxDeps = true; + + nativeBuildInputs = [ python3Packages.hatchling ]; + + dependencies = + [ + python3Packages.click + python3Packages.xdg-base-dirs + python3Packages.click-default-group + python3Packages.pyperclip + python3Packages.pyyaml + python3Packages.python-dotenv + python3Packages.watchfiles + python3Packages.pydantic + python3Packages.pydantic-settings + python3Packages.httpx + python3Packages.textual-autocomplete + python3Packages.textual + ] + ++ python3Packages.httpx.optional-dependencies.brotli + ++ python3Packages.textual.optional-dependencies.syntax; + + meta = { + description = "Modern API client that lives in your terminal"; + mainProgram = "posting"; + homepage = "https://posting.sh/"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ jorikvanveen ]; + platforms = lib.platforms.unix; + }; +}