New package: python3-pyliblo3-0.16.3

This commit is contained in:
Roger Freitas Pereira 2025-07-24 21:29:36 -03:00
parent 8617450827
commit 2f9a32ebee
No known key found for this signature in database
GPG key ID: 6C0F404D59BC11D6
2 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1,40 @@
From 6b53ac0f1768f5f2f017b7011030ef6461366639 Mon Sep 17 00:00:00 2001
From: Muhammad Alfi Syahrin <malfisya.dev@hotmail.com>
Date: Tue, 17 Jun 2025 19:58:19 +0700
Subject: [PATCH] Fix compilation with Cython 3.1.2
---
pyliblo3/_liblo.pyx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pyliblo3/_liblo.pyx b/pyliblo3/_liblo.pyx
index 4fa70df..dcc4da9 100644
--- a/pyliblo3/_liblo.pyx
+++ b/pyliblo3/_liblo.pyx
@@ -971,7 +971,7 @@ cdef class Message:
if t == 'i':
lo_message_add_int32(self._message, int(value))
elif t == 'h':
- lo_message_add_int64(self._message, long(value))
+ lo_message_add_int64(self._message, int(value))
elif t == 'f':
lo_message_add_float(self._message, float(value))
elif t == 'd':
@@ -1012,7 +1012,7 @@ cdef class Message:
lo_message_add_true(self._message)
elif value is False:
lo_message_add_false(self._message)
- elif isinstance(value, (int, long)):
+ elif isinstance(value, (int)):
try:
lo_message_add_int32(self._message, <int32_t>value)
except OverflowError:
@@ -1067,7 +1067,7 @@ cdef class Bundle:
if len(messages) and not isinstance(messages[0], Message):
t = messages[0]
- if isinstance(t, (float, int, long)):
+ if isinstance(t, (float, int)):
tt = _double_to_timetag(t)
elif isinstance(t, tuple) and len(t) == 2:
tt.sec, tt.frac = t

View file

@ -0,0 +1,13 @@
# Template file for 'python3-pyliblo3'
pkgname=python3-pyliblo3
version=0.16.3
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools python3-Cython"
makedepends="python3-devel liblo-devel"
short_desc="Python bindings for the liblo OSC library, a fork of pyliblo"
maintainer="Rutpiv <roger_freitas@live.com>"
license="LGPL-2.1-or-later"
homepage="https://github.com/gesellkammer/pyliblo3"
distfiles="https://github.com/gesellkammer/pyliblo3/archive/v${version}.tar.gz"
checksum=625ddf1b435eb7c1f1a1f187e11cd74e14995e108ba5d32482ff709bf6ffb2a8