From 05e3ff22cbcfc56f39e24201cec2137c8e754c35 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Fri, 24 Oct 2025 09:31:07 -0700 Subject: [PATCH] add: sounddevice (#6858) (#6870) --- anda/langs/python/sounddevice/anda.hcl | 6 +++ .../langs/python/sounddevice/sounddevice.spec | 50 +++++++++++++++++++ anda/langs/python/sounddevice/update.rhai | 1 + 3 files changed, 57 insertions(+) create mode 100644 anda/langs/python/sounddevice/anda.hcl create mode 100644 anda/langs/python/sounddevice/sounddevice.spec create mode 100644 anda/langs/python/sounddevice/update.rhai diff --git a/anda/langs/python/sounddevice/anda.hcl b/anda/langs/python/sounddevice/anda.hcl new file mode 100644 index 0000000000..80f5b9fc82 --- /dev/null +++ b/anda/langs/python/sounddevice/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "sounddevice.spec" + } +} diff --git a/anda/langs/python/sounddevice/sounddevice.spec b/anda/langs/python/sounddevice/sounddevice.spec new file mode 100644 index 0000000000..6237876197 --- /dev/null +++ b/anda/langs/python/sounddevice/sounddevice.spec @@ -0,0 +1,50 @@ +%global pypi_name sounddevice +%global _desc 🔉 Play and Record Sound with Python 🐍. + +Name: python-%{pypi_name} +Version: 0.5.3 +Release: 1%?dist +Summary: 🔉 Play and Record Sound with Python 🐍 +License: MIT +URL: https://python-sounddevice.rtfd.io/ +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-wheel +BuildRequires: python3-setuptools +BuildRequires: python3-pip + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +Provides: sounddevice +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%prep +%autosetup -n sounddevice-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files sounddevice + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.rst CONTRIBUTING.rst NEWS.rst +%license LICENSE +%ghost %python3_sitelib/__pycache__/*.cpython-*.pyc +%ghost %python3_sitelib/%{name}/subcommands/__pycache__/*.cpython-*.pyc +%python3_sitelib/sounddevice-%version.dist-info/* + +%changelog +* Fri Oct 24 2025 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/sounddevice/update.rhai b/anda/langs/python/sounddevice/update.rhai new file mode 100644 index 0000000000..e08be47a95 --- /dev/null +++ b/anda/langs/python/sounddevice/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("sounddevice"));