python313Packages.pyliblo: switch to pyliblo3 fork (#418925)

This commit is contained in:
K900 2025-07-07 20:10:41 +03:00 committed by GitHub
commit 957b920dfd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 68 additions and 47 deletions

View File

@ -1945,6 +1945,13 @@
githubId = 76066109;
name = "Mario Liguori";
};
archercatneo = {
name = "ArchercatNEO";
email = "tururu.pompella@gmail.com";
matrix = "@archercatneo:matrix.org";
github = "ArchercatNEO";
githubId = 108980279;
};
archseer = {
email = "blaz@mxxn.io";
github = "archseer";

View File

@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch2,
alsa-lib,
file,
fluidsynth,
@ -36,6 +37,15 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-FM/6TtNhDml1V9C5VisjLcZ3CzXsuwCZrsoz4yP3kI8=";
};
patches = [
(fetchpatch2 {
# https://github.com/falkTX/Carla/pull/1933
name = "prefer-pyliblo3-over-pyliblo.patch";
url = "https://github.com/falkTX/Carla/commit/a81a2a545d2529233a6e0faa776fbd2d851442fb.patch?full_index=1";
hash = "sha256-CHK3Aq/W9PdfMGsJunLN/WAxOmWJHc0jr/3TdEaIcMM=";
})
];
nativeBuildInputs = [
python3Packages.wrapPython
pkg-config
@ -47,7 +57,7 @@ stdenv.mkDerivation (finalAttrs: {
with python3Packages;
[
rdflib
pyliblo
pyliblo3
]
++ lib.optional withFrontend pyqt5;

View File

@ -3,7 +3,7 @@
fetchurl,
buildPythonApplication,
libjack2,
pyliblo,
pyliblo3,
pyqt5,
which,
bash,
@ -39,8 +39,8 @@ buildPythonApplication rec {
libjack2
bash
];
propagatedBuildInputs = [
pyliblo
dependencies = [
pyliblo3
pyqt5
];

View File

@ -1,42 +0,0 @@
{
lib,
buildPythonPackage,
fetchurl,
isPyPy,
liblo,
cython_0,
}:
buildPythonPackage rec {
pname = "pyliblo";
version = "0.10.0";
format = "setuptools";
disabled = isPyPy;
src = fetchurl {
url = "http://das.nasophon.de/download/${pname}-${version}.tar.gz";
sha256 = "13vry6xhxm7adnbyj28w1kpwrh0kf7nw83cz1yq74wl21faz2rzw";
};
patches = [
(fetchurl {
url = "https://git.alpinelinux.org/aports/plain/community/py3-pyliblo/py3.11.patch?id=a7e1eca5533657ddd7e37c43e67e8126e3447258";
hash = "sha256-4yCWNQaE/9FHGTVuvNEimBNuViWZ9aSJMcpTOP0fnM0=";
})
# Fix compile error due to incompatible pointer type 'lo_blob_dataptr'
(fetchurl {
url = "https://github.com/dsacre/pyliblo/commit/ebbb255d6a73384ec2560047eab236660d4589db.patch?full_index=1";
hash = "sha256-ZBAmBxSUT2xgoDVqSjq8TxW2jz3xR/pdCf2O3wMKvls=";
})
];
build-system = [ cython_0 ];
buildInputs = [ liblo ];
meta = with lib; {
homepage = "https://das.nasophon.de/pyliblo/";
description = "Python wrapper for the liblo OSC library";
license = licenses.lgpl21Only;
};
}

View File

@ -0,0 +1,45 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
python,
liblo,
cython,
}:
buildPythonPackage rec {
pname = "pyliblo3";
version = "0.16.3";
pyproject = true;
src = fetchFromGitHub {
owner = "gesellkammer";
repo = "pyliblo3";
tag = "v${version}";
hash = "sha256-QfwZXkUT4U2Gfbv3rk0F/bze9hwJGn7H8t0X1SWqIuc=";
};
build-system = [
setuptools
cython
];
buildInputs = [ liblo ];
pythonImportsCheck = [ "pyliblo3" ];
checkPhase = ''
runHook preCheck
${python.interpreter} ./test/unit.py
runHook postCheck
'';
meta = {
homepage = "https://github.com/gesellkammer/pyliblo3/";
description = "Python wrapper for the liblo OSC library";
changelog = "https://github.com/gesellkammer/pyliblo3/blob/${src.tag}/NEWS";
license = lib.licenses.lgpl21Plus;
maintainers = [ lib.maintainers.archercatneo ];
};
}

View File

@ -563,6 +563,7 @@ mapAliases ({
pyhiveapi = pyhive-integration; # Added 2025-02-22
pyhs100 = throw "pyhs100 has been removed in favor of python-kasa."; # added 2024-01-05
pylibgen = throw "pylibgen is unmaintained upstreamed, and removed from nixpkgs"; # added 2020-06-20
pyliblo = throw "pyliblo is unmaintained upstream and was removed from nixpkgs. Please use pyliblo3 instead"; # added 2025-06-23
PyLD = pyld; # added 2022-06-22
pylti = throw "pylti has been removed because it is unmaintained since 2019"; # added 2024-05-21
pymaging = throw "pymaging has been removed because it has not been maintained for 10 years and has been archived."; # added 2023-11-04

View File

@ -13026,7 +13026,7 @@ self: super: with self; {
pylibjpeg-openjpeg = callPackage ../development/python-modules/pylibjpeg-openjpeg { };
pyliblo = callPackage ../development/python-modules/pyliblo { };
pyliblo3 = callPackage ../development/python-modules/pyliblo3 { };
pylibmc = callPackage ../development/python-modules/pylibmc { };