# Copyright 2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 # CRATES generated by pycargoebuild 0.16.0 CRATES=" arc-swap@1.9.2 audio-codec-algorithms@0.8.1 audioadapter-buffers@5.2.0 audioadapter-sample@5.2.0 audioadapter@5.0.0 autocfg@1.5.1 base64@0.23.1 bitflags@2.13.2 bytemuck@1.25.2 byteorder@1.5.0 cc@1.4.5 cfg-if@1.0.4 chfft@0.3.4 cmake@0.1.58 crc32fast@1.5.2 dissimilar@1.0.11 expect-test@1.5.1 extended@0.1.0 find-msvc-tools@0.1.12 futures-channel@0.3.34 futures-core@0.3.34 futures-executor@0.3.34 futures-io@0.3.34 futures-macro@0.3.34 futures-sink@0.3.34 futures-task@0.3.34 futures-util@0.3.34 futures@0.3.34 heck@0.5.0 lazy_static@1.5.0 libc@0.2.189 log@0.4.34 memchr@2.8.3 num-complex@0.4.6 num-integer@0.1.47 num-traits@0.2.19 once_cell@1.21.4 opus@0.4.0 opusic-sys@0.7.5 pin-project-lite@0.2.17 portable-atomic@1.15.0 primal-check@0.3.4 proc-macro2@1.0.107 pyo3-async-runtimes@0.29.0 pyo3-build-config@0.29.3 pyo3-ffi@0.29.3 pyo3-log@0.13.4 pyo3-macros-backend@0.29.3 pyo3-macros@0.29.3 pyo3@0.29.3 quote@1.0.47 regex-lite@0.1.9 rubato@5.0.1 rustfft@6.4.1 rustversion@1.0.23 shlex@2.0.1 slab@0.4.12 smallvec@1.16.2 strength_reduce@0.2.4 symphonia-bundle-flac@0.6.1 symphonia-bundle-mp3@0.6.1 symphonia-codec-aac@0.6.1 symphonia-codec-adpcm@0.6.1 symphonia-codec-alac@0.6.1 symphonia-codec-pcm@0.6.1 symphonia-codec-vorbis@0.6.1 symphonia-common@0.6.1 symphonia-core@0.6.1 symphonia-format-caf@0.6.1 symphonia-format-isomp4@0.6.1 symphonia-format-mkv@0.6.1 symphonia-format-ogg@0.6.1 symphonia-format-riff@0.6.1 symphonia-metadata@0.6.1 symphonia@0.6.1 syn@2.0.119 syn@3.0.3 target-lexicon@0.13.5 tokio@1.53.2 transpose@0.2.3 unicode-ident@1.0.24 visibility@0.1.1 windowfunctions@0.1.1 " DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=maturin PYTHON_COMPAT=( python3_{10..15} ) RUST_MIN_VER="1.87.0" inherit cargo distutils-r1 pypi DESCRIPTION="Rust core for the shazamio Shazam API client" HOMEPAGE="https://github.com/shazamio/shazamio-core https://pypi.org/project/shazamio-core/" SRC_URI+=" ${CARGO_CRATE_URIS}" LICENSE="MIT" # Dependent crate licenses LICENSE+=" Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD MIT MPL-2.0 Unicode-3.0 " SLOT="0" KEYWORDS="~amd64" src_test() { # Import the built extension rather than the source-tree shazamio_core/. rm -r shazamio_core || die distutils-r1_src_test } EPYTEST_PLUGINS=( pytest-asyncio ) distutils_enable_tests pytest