diff --git a/pkgs/by-name/po/posting/package.nix b/pkgs/by-name/po/posting/package.nix new file mode 100644 index 000000000000..4550df713fd3 --- /dev/null +++ b/pkgs/by-name/po/posting/package.nix @@ -0,0 +1,56 @@ +{ + lib, + fetchFromGitHub, + python3Packages, + xorg, +}: +python3Packages.buildPythonApplication rec { + pname = "posting"; + version = "2.3.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "darrenburns"; + repo = "posting"; + tag = version; + hash = "sha256-lL85gJxFw8/e8Js+UCE9VxBMcmWRUkHh8Cq5wTC93KA="; + }; + + pythonRelaxDeps = true; + + build-system = with python3Packages; [ + hatchling + ]; + + # Required for x resources themes + buildInputs = [ xorg.xrdb ]; + + dependencies = + with python3Packages; + [ + click + xdg-base-dirs + click-default-group + pyperclip + pyyaml + python-dotenv + watchfiles + pydantic + pydantic-settings + httpx + textual-autocomplete + textual + ] + ++ httpx.optional-dependencies.brotli + ++ textual.optional-dependencies.syntax; + + meta = { + description = "Modern API client that lives in your terminal"; + mainProgram = "posting"; + homepage = "https://posting.sh/"; + changelog = "https://github.com/darrenburns/posting/releases/tag/${version}"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ jorikvanveen ]; + platforms = lib.platforms.unix; + }; +}