summaryrefslogtreecommitdiff
path: root/dev-python/audioread
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/audioread')
-rw-r--r--dev-python/audioread/Manifest1
-rw-r--r--dev-python/audioread/audioread-3.0.1-r1.ebuild49
-rw-r--r--dev-python/audioread/files/audioread-3.0.1-optional-deprecated-modules.patch208
-rw-r--r--dev-python/audioread/metadata.xml20
4 files changed, 0 insertions, 278 deletions
diff --git a/dev-python/audioread/Manifest b/dev-python/audioread/Manifest
deleted file mode 100644
index 85eb92f4144e..000000000000
--- a/dev-python/audioread/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST audioread-3.0.1.tar.gz 116513 BLAKE2B a16fad6d56fe5b48b635ae3a20bf74f20848d0489b2b3ea0b6e99c7f2b4bf61adc14509ec1c9d153819265fb057ad3676cb178cfe26622fa0f6fec782e1bc1cf SHA512 b362bf85372fa64a3ed54258e344787db4f15d19a9d959522339fc441eb7ae0d1394707e8c3aa6bc77a42cc790650670d84800f1f3885efe932f718ed0a35bc1
diff --git a/dev-python/audioread/audioread-3.0.1-r1.ebuild b/dev-python/audioread/audioread-3.0.1-r1.ebuild
deleted file mode 100644
index 6d1e42b85f4d..000000000000
--- a/dev-python/audioread/audioread-3.0.1-r1.ebuild
+++ /dev/null
@@ -1,49 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=flit
-PYTHON_COMPAT=( python3_{13..14} )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Wrapper for audio file decoding using FFmpeg or GStreamer"
-HOMEPAGE="
- https://github.com/beetbox/audioread/
- https://pypi.org/project/audioread/
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="amd64 arm64 ~x86"
-IUSE="ffmpeg gstreamer mad"
-
-RDEPEND="
- $(python_gen_cond_dep '
- dev-python/audioop-lts[${PYTHON_USEDEP}]
- ' 3.13 3.14)
- ffmpeg? (
- media-video/ffmpeg
- )
- gstreamer? (
- dev-python/pygobject:3[${PYTHON_USEDEP}]
- media-libs/gstreamer:1.0
- media-plugins/gst-plugins-meta:1.0
- )
- mad? (
- dev-python/pymad[${PYTHON_USEDEP}]
- )
-"
-BDEPEND="
- test? (
- dev-python/pymad[${PYTHON_USEDEP}]
- )
-"
-
-EPYTEST_PLUGINS=()
-distutils_enable_tests pytest
-
-PATCHES=(
- "${FILESDIR}"/audioread-3.0.1-optional-deprecated-modules.patch
-)
diff --git a/dev-python/audioread/files/audioread-3.0.1-optional-deprecated-modules.patch b/dev-python/audioread/files/audioread-3.0.1-optional-deprecated-modules.patch
deleted file mode 100644
index ee65344c8e9f..000000000000
--- a/dev-python/audioread/files/audioread-3.0.1-optional-deprecated-modules.patch
+++ /dev/null
@@ -1,208 +0,0 @@
-https://bugs.gentoo.org/952317
-https://github.com/beetbox/audioread/issues/144
-https://github.com/beetbox/audioread/pull/148
-
-(Cherrypicked)
-
-From 1ddd63b3ba6bcb11ef993c7da18db0fc83af84b7 Mon Sep 17 00:00:00 2001
-From: Brian McFee <brian.mcfee@nyu.edu>
-Date: Wed, 29 Jan 2025 12:51:27 -0500
-Subject: [PATCH 1/4] implemented flexible legacy codec handling
-
---- a/audioread/rawread.py
-+++ b/audioread/rawread.py
-@@ -13,11 +13,10 @@
- # included in all copies or substantial portions of the Software.
-
- """Uses standard-library modules to read AIFF, AIFF-C, and WAV files."""
--import aifc
- import audioop
- import struct
--import sunau
- import wave
-+import warnings
-
- from .exceptions import DecodeError
- from .base import AudioFile
-@@ -54,20 +53,13 @@ def byteswap(s):
- class RawAudioFile(AudioFile):
- """An AIFF, WAV, or Au file that can be read by the Python standard
- library modules ``wave``, ``aifc``, and ``sunau``.
-+
-+ On Python 3.13 and later, ``aifc`` and ``sunau`` support require
-+ installing the ``standard-aifc`` and ``standard-sunau`` packages, respectively.
- """
- def __init__(self, filename):
- self._fh = open(filename, 'rb')
-
-- try:
-- self._file = aifc.open(self._fh)
-- except aifc.Error:
-- # Return to the beginning of the file to try the next reader.
-- self._fh.seek(0)
-- else:
-- self._needs_byteswap = True
-- self._check()
-- return
--
- try:
- self._file = wave.open(self._fh)
- except wave.Error:
-@@ -78,15 +70,38 @@ class RawAudioFile(AudioFile):
- self._check()
- return
-
-+ # The following are deprecated formats and may not be supported
- try:
-- self._file = sunau.open(self._fh)
-- except sunau.Error:
-- self._fh.seek(0)
-- pass
-+ import aifc
-+ except ImportError:
-+ warnings.warn("aifc module not found; AIFF files will not be supported. "
-+ "You may need to install the standard-aifc package.")
- else:
-- self._needs_byteswap = True
-- self._check()
-- return
-+ try:
-+ self._file = aifc.open(self._fh)
-+ except aifc.Error:
-+ # Return to the beginning of the file to try the next reader.
-+ self._fh.seek(0)
-+ else:
-+ self._needs_byteswap = True
-+ self._check()
-+ return
-+
-+ try:
-+ import sunau
-+ except ImportError:
-+ warnings.warn("sunau module not found; Au files will not be supported. "
-+ "You may need to install the standard-sunau package.")
-+ else:
-+ try:
-+ self._file = sunau.open(self._fh)
-+ except sunau.Error:
-+ self._fh.seek(0)
-+ pass
-+ else:
-+ self._needs_byteswap = True
-+ self._check()
-+ return
-
- # None of the three libraries could open the file.
- self._fh.close()
---- a/pyproject.toml
-+++ b/pyproject.toml
-@@ -8,7 +8,7 @@ authors = [
- {name = "Adrian Sampson", email = "adrian@radbox.org"}
- ]
- readme = "README.rst"
--requires-python = ">=3.6"
-+requires-python = ">=3.8"
- dynamic = ["version", "description"]
- urls.Home = "https://github.com/beetbox/audioread"
- classifiers = [
-@@ -19,9 +19,15 @@ classifiers = [
- 'Programming Language :: Python :: 3.9',
- 'Programming Language :: Python :: 3.10',
- 'Programming Language :: Python :: 3.11',
-+ 'Programming Language :: Python :: 3.12',
-+ 'Programming Language :: Python :: 3.13',
- ]
-
- [project.optional-dependencies]
- test = [
- "tox"
- ]
-+legacy = [
-+ "standard-aifc; python_version >= '3.13'",
-+ "standard-sunau; python_version >= '3.13'"
-+]
---
-2.49.0
-
-
-From d761d0c9df6ca423aa7e69c27d0946c1d9c7b5d3 Mon Sep 17 00:00:00 2001
-From: Brian McFee <brian.mcfee@nyu.edu>
-Date: Mon, 3 Feb 2025 12:17:55 -0500
-Subject: [PATCH 2/4] added audioop-lts dependency for modern python installs
-
---- a/pyproject.toml
-+++ b/pyproject.toml
-@@ -9,6 +9,9 @@ authors = [
- ]
- readme = "README.rst"
- requires-python = ">=3.8"
-+requires = [
-+ "audioop-lts; python_version >= '3.13'"
-+]
- dynamic = ["version", "description"]
- urls.Home = "https://github.com/beetbox/audioread"
- classifiers = [
---
-2.49.0
-
-
-From a7d86b7c2a22489a58d0ff9dc3e0b7608aa25914 Mon Sep 17 00:00:00 2001
-From: Brian McFee <brian.mcfee@nyu.edu>
-Date: Mon, 3 Feb 2025 12:29:58 -0500
-Subject: [PATCH 3/4] updated readme
-
---- a/README.rst
-+++ b/README.rst
-@@ -8,8 +8,8 @@ currently supports:
- - `Core Audio`_ on Mac OS X via `ctypes`_. (PyObjC not required.)
- - `MAD`_ via the `pymad`_ bindings.
- - `FFmpeg`_ or `Libav`_ via its command-line interface.
--- The standard library `wave`_, `aifc`_, and `sunau`_ modules (for
-- uncompressed audio formats).
-+- The standard library `wave`_ module (for
-+ uncompressed audio formats). Legacy formats `aifc`_ and `sunau`_ are also optionally supported, see the note below.
-
- .. _Gstreamer: http://gstreamer.freedesktop.org/
- .. _gst-python: http://gstreamer.freedesktop.org/modules/gst-python.html
-@@ -73,6 +73,18 @@ that you have a broken installation of `FFmpeg`_. To check, try typing
- FFmpeg with your OS's package manager (e.g., apt or yum) or `using Conda
- <https://anaconda.org/conda-forge/ffmpeg>`_.
-
-+Legacy formats
-+--------------
-+The `aifc`_ and `sunau`_ modules were deprecated and removed from the standard
-+Python distribution in version 3.13.
-+Support for `aifc` and `sunau` formats is still available through `deadlib`_.
-+To install audioread with continued support for these formats, you can
-+use the following command::
-+
-+ python -m pip install audioread[legacy]
-+
-+.. _deadlib: https://github.com/youknowone/python-deadlib
-+
- Version History
- ---------------
-
---
-2.49.0
-
-
-From 7f932069d2e44e97d2da7d243f067d3726a0db8d Mon Sep 17 00:00:00 2001
-From: Brian McFee <brian.mcfee@nyu.edu>
-Date: Mon, 3 Feb 2025 14:14:15 -0500
-Subject: [PATCH 4/4] fixed wrong format spec for dependencies
-
---- a/pyproject.toml
-+++ b/pyproject.toml
-@@ -9,7 +9,7 @@ authors = [
- ]
- readme = "README.rst"
- requires-python = ">=3.8"
--requires = [
-+dependencies = [
- "audioop-lts; python_version >= '3.13'"
- ]
- dynamic = ["version", "description"]
---
-2.49.0
-
diff --git a/dev-python/audioread/metadata.xml b/dev-python/audioread/metadata.xml
deleted file mode 100644
index a41b10f109f0..000000000000
--- a/dev-python/audioread/metadata.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>python@gentoo.org</email>
- <name>Python</name>
- </maintainer>
- <stabilize-allarches/>
- <longdescription lang="en">
- Decode audio files using whichever backend is available. The library currently supports:
- * Gstreamer via gst-python.
- * MAD via the pymad bindings.
- * FFmpeg via its command-line interface.
- * The standard library wave and aifc modules (for WAV and AIFF files).
- </longdescription>
- <upstream>
- <remote-id type="github">beetbox/audioread</remote-id>
- <remote-id type="pypi">audioread</remote-id>
- </upstream>
-</pkgmetadata>