posting: init at 2.3.0

This commit is contained in:
Jorik
2025-02-13 18:59:13 +01:00
parent 9305c76f06
commit 8fa08cdc67
+56
View File
@@ -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;
};
}