From eb8c026c73877d11317227b51d9936866fcfe71e Mon Sep 17 00:00:00 2001 From: Anton Tetov Johansson Date: Wed, 25 Mar 2026 12:06:06 +0100 Subject: [PATCH] poezio: 0.14->0.16 --- pkgs/by-name/po/poezio/package.nix | 61 +++++++++++++++++++++--------- 1 file changed, 44 insertions(+), 17 deletions(-) diff --git a/pkgs/by-name/po/poezio/package.nix b/pkgs/by-name/po/poezio/package.nix index 1c649bcaeed4..78a64d62ee49 100644 --- a/pkgs/by-name/po/poezio/package.nix +++ b/pkgs/by-name/po/poezio/package.nix @@ -3,52 +3,79 @@ fetchFromCodeberg, pkg-config, python3, + sphinxHook, }: python3.pkgs.buildPythonApplication (finalAttrs: { pname = "poezio"; - version = "0.14"; + version = "0.16"; pyproject = true; src = fetchFromCodeberg { owner = "poezio"; repo = "poezio"; rev = "v${finalAttrs.version}"; - hash = "sha256-sk+8r+a0CcoB0RidqnE7hJUgt/xvN/MCJMkxiquvdJc="; + hash = "sha256-bpudgf9oZ+7w7izAuWYKFVO9CIHraHaGvRKLDuSIF7c="; }; nativeBuildInputs = [ pkg-config ]; - build-system = [ python3.pkgs.setuptools ]; + build-system = with python3.pkgs; [ + setuptools + sphinxHook + aiohttp + ]; dependencies = with python3.pkgs; [ - aiodns - cffi - mpd2 - potr - pyasn1 - pyasn1-modules - pycares - pyinotify + dependency-groups setuptools slixmpp - typing-extensions ]; + optional-dependencies = { + plugins = with python3.pkgs; [ + pyinotify + aiohttp + pygments + qrcode + pillow + python-musicpd + ]; + }; + + preBuild = '' + ${python3.pythonOnBuildForHost.interpreter} setup.py build_ext --inplace + ''; + nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ]; + outputs = [ + "out" + "man" + ]; + + sphinxBuilders = [ + "man" + ]; + pythonImportsCheck = [ "poezio" ]; - # remove poezio directory to prevent pytest import confusion - preCheck = '' - rm -r poezio - ''; - meta = { description = "Free console XMPP client"; + longDescription = '' + Its goal is to let you connect very easily (no account creation needed) to + the network and join various chatrooms, immediately. It tries to look like + the most famous IRC clients (weechat, irssi, etc). Many commands are + identical and you won't be lost if you already know these clients. + Configuration can be made in a configuration file or directly from + the client. + + You'll find the light, fast, geeky and anonymous spirit of IRC while using + a powerful, standard and open protocol. + ''; homepage = "https://poez.io"; changelog = "https://codeberg.org/poezio/poezio/src/tag/v${finalAttrs.version}/CHANGELOG"; license = lib.licenses.zlib;