From ff3c5a7172afb99d4294ed7bbe0e6abe3f3e22e8 Mon Sep 17 00:00:00 2001 From: Jorik Date: Wed, 30 Oct 2024 22:58:24 +0100 Subject: [PATCH 1/3] maintainers: add jorikvanveen --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index edb71c74ff8d..b9596fe547ac 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -11174,6 +11174,12 @@ github = "jordanisaacs"; githubId = 19742638; }; + jorikvanveen = { + email = "vanveenjorik@protonmail.com"; + github = "jorikvanveen"; + githubId = 33939820; + name = "Jorik van Veen"; + }; jorise = { email = "info@jorisengbers.nl"; github = "JorisE"; From 9305c76f0611489e0fb894f0fd927ee8cd0e8c2e Mon Sep 17 00:00:00 2001 From: Jorik Date: Sat, 2 Nov 2024 15:11:57 +0100 Subject: [PATCH 2/3] python312Packages.textual-autocomplete: init at 3.0.0a13 --- .../textual-autocomplete/default.nix | 45 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/textual-autocomplete/default.nix diff --git a/pkgs/development/python-modules/textual-autocomplete/default.nix b/pkgs/development/python-modules/textual-autocomplete/default.nix new file mode 100644 index 000000000000..c609a33b77b0 --- /dev/null +++ b/pkgs/development/python-modules/textual-autocomplete/default.nix @@ -0,0 +1,45 @@ +{ + lib, + python3, + fetchFromGitHub, + poetry-core, + textual, + typing-extensions, + hatchling, +}: +python3.pkgs.buildPythonPackage rec { + pname = "textual_autocomplete"; + version = "3.0.0a13"; + pyproject = true; + + src = fetchFromGitHub { + owner = "darrenburns"; + repo = "textual-autocomplete"; + rev = "2cb572bf5b1ea0554b396d0833dfb398cb45dc9b"; + hash = "sha256-jfGYC3xDspwEr+KGApGB05VFuzluDe5S9a/Sjg5HtdI="; + }; + + nativeBuildInputs = [ + poetry-core + hatchling + ]; + + pythonRelaxDeps = true; + + dependencies = [ + textual + typing-extensions + ]; + + pythonImportsCheck = [ + "textual" + "typing_extensions" + ]; + + meta = { + description = "Python library that provides autocomplete capabilities to textual"; + homepage = "https://pypi.org/project/textual-autocomplete"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ jorikvanveen ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 481a660c4f47..7c7142b4d791 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -16005,6 +16005,8 @@ self: super: with self; { textual = callPackage ../development/python-modules/textual { }; + textual-autocomplete = callPackage ../development/python-modules/textual-autocomplete { }; + textual-dev = callPackage ../development/python-modules/textual-dev { }; textual-fastdatatable = callPackage ../development/python-modules/textual-fastdatatable { }; From 8fa08cdc675e731dc5ccffeb96004501fcfc6412 Mon Sep 17 00:00:00 2001 From: Jorik Date: Sat, 2 Nov 2024 15:19:53 +0100 Subject: [PATCH 3/3] posting: init at 2.3.0 --- pkgs/by-name/po/posting/package.nix | 56 +++++++++++++++++++++++++++++ 1 file changed, 56 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 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; + }; +}