From 0a4986f35e35292d5a2351e4748eff8368fa6f0f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 18 Aug 2025 20:08:19 +0200 Subject: [PATCH] python313Packages.ueberzug: refactor - update build-system - update meta - add missing input --- .../python-modules/ueberzug/default.nix | 30 ++++++++++++------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/ueberzug/default.nix b/pkgs/development/python-modules/ueberzug/default.nix index d0169e0f6e39..e10e0b578597 100644 --- a/pkgs/development/python-modules/ueberzug/default.nix +++ b/pkgs/development/python-modules/ueberzug/default.nix @@ -1,13 +1,16 @@ { lib, + attrs, buildPythonPackage, + docopt, fetchPypi, - isPy27, libX11, libXext, - attrs, - docopt, + libXres, + meson-python, + meson, pillow, + pkg-config, psutil, xlib, }: @@ -15,21 +18,27 @@ buildPythonPackage rec { pname = "ueberzug"; version = "18.3.1"; - format = "setuptools"; - - disabled = isPy27; + pyproject = true; src = fetchPypi { inherit pname version; - sha256 = "sha256-1Lk4E5YwEq2mUnYbIWDhzz9/CCwfXMJ11/TtJ44ugOk="; + hash = "sha256-1Lk4E5YwEq2mUnYbIWDhzz9/CCwfXMJ11/TtJ44ugOk="; }; + build-system = [ + meson + meson-python + ]; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ libX11 + libXres libXext ]; - propagatedBuildInputs = [ + dependencies = [ attrs docopt pillow @@ -42,10 +51,11 @@ buildPythonPackage rec { pythonImportsCheck = [ "ueberzug" ]; meta = with lib; { - homepage = "https://github.com/seebye/ueberzug"; description = "Alternative for w3mimgdisplay"; + homepage = "https://github.com/ueber-devel/ueberzug"; + changelog = "https://github.com/ueber-devel/ueberzug/releases/tag/${version}"; + license = licenses.gpl3Only; mainProgram = "ueberzug"; - license = licenses.gpl3; maintainers = with maintainers; [ Br1ght0ne ]; }; }