Skip to content

Commit

Permalink
New package: python3-pyliblo3-0.16.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Rutpiv committed Nov 29, 2024
1 parent 3ddf0ab commit a525eb3
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
21 changes: 21 additions & 0 deletions srcpkgs/python3-pyliblo3/patches/python3.13.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
From 6f0c8a73fd25fd05f528f79ac204a25657cebab7 Mon Sep 17 00:00:00 2001
From: Cristian Le <[email protected]>
Date: Wed, 4 Sep 2024 13:42:53 +0200
Subject: [PATCH 1/2] type-erase lo_blob_dataptr input

---
pyliblo3/_liblo.pyx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyliblo3/_liblo.pyx b/pyliblo3/_liblo.pyx
index 536cbf9..4fa70df 100644
--- a/pyliblo3/_liblo.pyx
+++ b/pyliblo3/_liblo.pyx
@@ -271,7 +271,7 @@ cdef int _msg_callback(const_char *path, const_char *types, lo_arg **argv,
elif t == 'm': v = (argv[i].m[0], argv[i].m[1], argv[i].m[2], argv[i].m[3])
elif t == 't': v = _timetag_to_double(argv[i].t)
elif t == 'b':
- v = bytes(<unsigned char*>lo_blob_dataptr(argv[i]))
+ v = bytes(<unsigned char*>lo_blob_dataptr(<lo_blob>argv[i]))
else:
v = None # unhandled data type
19 changes: 19 additions & 0 deletions srcpkgs/python3-pyliblo3/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Template file for 'python3-pyliblo3'
pkgname=python3-pyliblo3
version=0.16.2
revision=1
_commit_hash=91d17815b911ccc2c1d1408412e7885c32f2d460
build_style=python3-module
hostmakedepends="python3-setuptools python3-Cython"
makedepends="python3-devel liblo-devel"
depends="python3"
short_desc="Python bindings for the liblo OSC library, a fork of pyliblo"
maintainer="Rutpiv <[email protected]>"
license="LGPL-2.1-or-later"
homepage="https://github.com/gesellkammer/pyliblo3"
distfiles="https://github.com/gesellkammer/pyliblo3/archive/${_commit_hash}.tar.gz"
checksum=a17ef90dfc01cc298dadecbe7a2cedc4cadfaf78bc704260eb818099cb63366b

post_extract() {
rm pyliblo3/_liblo.c
}

0 comments on commit a525eb3

Please sign in to comment.