From e8f3271c6d1cba862774de6451af5331f833edc4 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Wed, 22 Jul 2026 10:50:56 +0200 Subject: [PATCH] python3Packages.lxst: 0.4.4 -> 0.5.0 --- .../python-modules/lxst/default.nix | 27 +++++++++++-------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/lxst/default.nix b/pkgs/development/python-modules/lxst/default.nix index 50d413bc13b7..f9c1d22427c8 100644 --- a/pkgs/development/python-modules/lxst/default.nix +++ b/pkgs/development/python-modules/lxst/default.nix @@ -1,7 +1,7 @@ { lib, buildPythonPackage, - fetchFromGitHub, + fetchPypi, setuptools, libpulseaudio, audioop-lts, @@ -14,19 +14,24 @@ buildPythonPackage (finalAttrs: { pname = "lxst"; - version = "0.4.4"; - pyproject = true; + version = "0.5.0"; + format = "wheel"; __structuredAttrs = true; - src = fetchFromGitHub { - owner = "markqvist"; - repo = "lxst"; - tag = finalAttrs.version; - hash = "sha256-MAJ1n6EUZ6FmIfKKuM2ppbTVrWkxpjC5KIICo5stc+k="; + src = fetchPypi { + pname = "lxst"; + version = finalAttrs.version; + format = "wheel"; + dist = "py3"; + python = "py3"; + hash = "sha256-k1HiWv/5iIuSjaeIIDyELX+1FHI3k15IJwxUwUutpM0="; }; - postPatch = '' - substituteInPlace LXST/Platforms/linux/soundcard.py \ + # We can't use a postPatch here to do the substitution because the wheel is + # already built and the file is not present in the source tree, only the + # wheel archive. + postInstall = '' + substituteInPlace "$out/lib/python"*/site-packages/LXST/Platforms/linux/soundcard.py \ --replace-fail "libpulse.so" "${lib.getLib libpulseaudio}/lib/libpulse.so" ''; @@ -47,7 +52,7 @@ buildPythonPackage (finalAttrs: { changelog = "https://github.com/markqvist/LXST/releases/tag/${finalAttrs.version}"; description = "Simple and flexible real-time streaming format and delivery protocol for Reticulum"; homepage = "https://github.com/markqvist/LXST"; - license = lib.licenses.cc-by-nc-nd-40; + license = lib.licenses.reticulum; maintainers = with lib.maintainers; [ drupol ];