nixpkgs/pkgs/by-name/po/posting/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

65 lines
1.3 KiB
Nix
Raw Normal View History

2024-11-02 15:19:53 +01:00
{
lib,
fetchFromGitHub,
python3Packages,
xorg,
}:
python3Packages.buildPythonApplication rec {
pname = "posting";
2025-04-22 19:51:59 +00:00
version = "2.7.0";
2024-11-02 15:19:53 +01:00
pyproject = true;
src = fetchFromGitHub {
owner = "darrenburns";
repo = "posting";
tag = version;
2025-04-22 19:51:59 +00:00
hash = "sha256-FkeQSU/gktCsCFoKAk0igfHj16WpxQG01WyAmBYLwX4=";
2024-11-02 15:19:53 +01:00
};
pythonRelaxDeps = true;
build-system = with python3Packages; [
hatchling
];
# Required for x resources themes
2025-04-15 13:57:08 +02:00
buildInputs = [
xorg.xrdb
];
2024-11-02 15:19:53 +01:00
dependencies =
with python3Packages;
[
click
xdg-base-dirs
click-default-group
pyperclip
pyyaml
python-dotenv
watchfiles
pydantic
pydantic-settings
httpx
textual-autocomplete
textual
2025-04-01 13:58:54 +00:00
openapi-pydantic
2025-04-15 13:57:08 +02:00
tree-sitter-json
tree-sitter-html
2024-11-02 15:19:53 +01:00
]
++ httpx.optional-dependencies.brotli
++ textual.optional-dependencies.syntax;
meta = {
description = "Modern API client that lives in your terminal";
mainProgram = "posting";
homepage = "https://posting.sh/";
2025-04-22 19:51:59 +00:00
changelog = "https://github.com/darrenburns/posting/releases/tag/${src.tag}";
2024-11-02 15:19:53 +01:00
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
jorikvanveen
fullmetalsheep
];
2024-11-02 15:19:53 +01:00
platforms = lib.platforms.unix;
};
}