nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 python3Packages,
5 xrdb,
6}:
7python3Packages.buildPythonApplication rec {
8 pname = "posting";
9 version = "2.9.2";
10 pyproject = true;
11
12 src = fetchFromGitHub {
13 owner = "darrenburns";
14 repo = "posting";
15 tag = version;
16 hash = "sha256-BX1D9XgBqRIfavDxAQH7mPP/dnayQu3xSSAF6/JSM54=";
17 };
18
19 pythonRelaxDeps = true;
20
21 build-system = with python3Packages; [
22 hatchling
23 ];
24
25 # Required for x resources themes
26 buildInputs = [
27 xrdb
28 ];
29
30 dependencies =
31 with python3Packages;
32 [
33 click
34 xdg-base-dirs
35 click-default-group
36 pyperclip
37 pyyaml
38 python-dotenv
39 watchfiles
40 pydantic
41 pydantic-settings
42 httpx
43 textual-autocomplete
44 textual
45 openapi-pydantic
46 tree-sitter-json
47 tree-sitter-html
48 ]
49 ++ httpx.optional-dependencies.brotli
50 ++ textual.optional-dependencies.syntax;
51
52 meta = {
53 description = "Modern API client that lives in your terminal";
54 mainProgram = "posting";
55 homepage = "https://posting.sh/";
56 changelog = "https://github.com/darrenburns/posting/releases/tag/${src.tag}";
57 license = lib.licenses.asl20;
58 maintainers = with lib.maintainers; [
59 jorikvanveen
60 fullmetalsheep
61 ];
62 platforms = lib.platforms.unix;
63 };
64}