mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-05 12:22:57 +02:00
New package: python3-pyliblo3-0.16.3
This commit is contained in:
parent
8617450827
commit
2f9a32ebee
2 changed files with 53 additions and 0 deletions
40
srcpkgs/python3-pyliblo3/patches/Cython 3.1.2.patch
Normal file
40
srcpkgs/python3-pyliblo3/patches/Cython 3.1.2.patch
Normal 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
|
13
srcpkgs/python3-pyliblo3/template
Normal file
13
srcpkgs/python3-pyliblo3/template
Normal 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
|
Loading…
Add table
Reference in a new issue