python3Packages.lxst: 0.4.4 -> 0.5.0

This commit is contained in:
Pol Dellaiera
2026-07-22 10:51:22 +02:00
parent 9e5a41550e
commit e8f3271c6d
@@ -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
];