commit: 1764e9e0c969406f14d2023be3c57627e8eae7da Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Wed Jun 1 01:16:55 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Jun 1 01:25:15 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1764e9e0
dev-python/enzyme: update EAPI 7 -> 8 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-python/enzyme/enzyme-0.4.1-r3.ebuild | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/dev-python/enzyme/enzyme-0.4.1-r3.ebuild b/dev-python/enzyme/enzyme-0.4.1-r3.ebuild new file mode 100644 index 000000000000..bfd4cac2d90e --- /dev/null +++ b/dev-python/enzyme/enzyme-0.4.1-r3.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} ) +PYTHON_REQ_USE='xml(+)' + +inherit distutils-r1 + +DESCRIPTION="Python video metadata parser" +HOMEPAGE="https://github.com/Diaoul/enzyme https://pypi.org/project/enzyme/" +SRC_URI=" + mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz + test? ( mirror://sourceforge/matroska/test_files/matroska_test_w1_1.zip ) +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + test? ( + app-arch/unzip + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests setup.py + +python_prepare_all() { + if use test; then + mkdir enzyme/tests/test_{mkv,parsers} || die + ln -s "${WORKDIR}"/test*.mkv enzyme/tests/test_mkv/ || die + ln -s "${WORKDIR}"/test*.mkv enzyme/tests/test_parsers/ || die + fi + + distutils-r1_python_prepare_all +}