From 3490d2937d239a8a6d5452e387c5e269ae5f072a 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 | 58 +++++++++++++++++++++++++++++ 1 file changed, 58 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 00000000000000..254b1a6fed667b --- /dev/null +++ b/pkgs/by-name/po/posting/package.nix @@ -0,0 +1,58 @@ +{ + lib, + fetchFromGitHub, + python3Packages, +}: let + #textual = python3Packages.textual.overrideAttrs rec { + # version = "0.86.2"; + + # src = fetchFromGitHub { + # owner = "Textualize"; + # repo = "textual"; + # tag = "v${version}"; + # hash = "sha256-cQYBa1vba/fuv/j0D/MNUboQNTc913UG4dp8a1EPql4="; + # }; + #}; +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; + }; +}