diff --git a/audio/py-sounddevice/Makefile b/audio/py-sounddevice/Makefile index fcf212107a4e..5e202a5d1e85 100644 --- a/audio/py-sounddevice/Makefile +++ b/audio/py-sounddevice/Makefile @@ -1,30 +1,27 @@ PORTNAME= sounddevice -DISTVERSION= 0.5.1 -PORTREVISION= 3 +DISTVERSION= 0.5.5 CATEGORIES= audio python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Play and record sound through OSS in python programs WWW= https://github.com/spatialaudio/python-sounddevice LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_FLAVOR} +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_FLAVOR} \ + ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR} \ portaudio>0:audio/portaudio USES= python -USE_PYTHON= distutils autoplist +USE_PYTHON= autoplist pep517 NO_ARCH= yes -post-install: # workaround for https://github.com/spatialaudio/python-sounddevice/issues/116 - @${GREP} "/sounddevice\." < ${_PYTHONPKGLIST} \ - | ${SED} -e 's|/sounddevice\.|/_sounddevice.|' \ - >> ${_PYTHONPKGLIST} - .include diff --git a/audio/py-sounddevice/distinfo b/audio/py-sounddevice/distinfo index c9f57f7eaaae..da08c0cbd9e5 100644 --- a/audio/py-sounddevice/distinfo +++ b/audio/py-sounddevice/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1728840962 -SHA256 (sounddevice-0.5.1.tar.gz) = 09ca991daeda8ce4be9ac91e15a9a81c8f81efa6b695a348c9171ea0c16cb041 -SIZE (sounddevice-0.5.1.tar.gz) = 52896 +TIMESTAMP = 1785392913 +SHA256 (sounddevice-0.5.5.tar.gz) = 22487b65198cb5bf2208755105b524f78ad173e5ab6b445bdab1c989f6698df3 +SIZE (sounddevice-0.5.5.tar.gz) = 143191 diff --git a/audio/py-sounddevice/files/patch-pyproject.toml b/audio/py-sounddevice/files/patch-pyproject.toml new file mode 100644 index 000000000000..3a594ab25a0d --- /dev/null +++ b/audio/py-sounddevice/files/patch-pyproject.toml @@ -0,0 +1,15 @@ +-- Fix PEP 621 license declaration that the installed setuptools rejects. +-- Upstream uses the string form accepted by newer tools; convert it to the +-- table form so the port builds with the setuptools version in the tree. + +--- pyproject.toml.orig 2026-07-29 23:30:00 UTC ++++ pyproject.toml +@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" + + [project] + name = "sounddevice" +-license = "MIT" ++license = { text = "MIT" } + dynamic = ["version"] + description = "Play and Record Sound with Python" + readme = "README.rst"