Unverified Commit 957b920d authored by K900's avatar K900 Committed by GitHub
Browse files

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

parents 09a304b9 4276e92b
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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";
+11 −1
Original line number Diff line number Diff line
@@ -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;

+3 −3
Original line number Diff line number Diff line
@@ -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
  ];

+0 −42
Original line number Diff line number Diff line
{
  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;
  };
}
+45 −0
Original line number Diff line number Diff line
{
  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 ];
  };
}
Loading