summaryrefslogtreecommitdiff
path: root/dev-python/knowit/knowit-0.7.1.ebuild
diff options
context:
space:
mode:
authorCrucible <crucible@localhost>2026-09-27 01:07:12 -0500
committerCrucible <crucible@localhost>2026-09-27 01:07:12 -0500
commit0be7876bb52244ca5679b62e475ab31998727545 (patch)
treeb3740c4a805c8ee581e9eaa83e92b799c5ef564d /dev-python/knowit/knowit-0.7.1.ebuild
parent93fd71458837afd65f1ae5b261535969a045bacd (diff)
downloadsrcux-0be7876bb52244ca5679b62e475ab31998727545.tar.gz
srcux-0be7876bb52244ca5679b62e475ab31998727545.tar.xz
srcux-0be7876bb52244ca5679b62e475ab31998727545.zip
Publish srcux candidate 0000000476-20260927-010506
Diffstat (limited to 'dev-python/knowit/knowit-0.7.1.ebuild')
-rw-r--r--dev-python/knowit/knowit-0.7.1.ebuild73
1 files changed, 73 insertions, 0 deletions
diff --git a/dev-python/knowit/knowit-0.7.1.ebuild b/dev-python/knowit/knowit-0.7.1.ebuild
new file mode 100644
index 000000000000..7f75192effe6
--- /dev/null
+++ b/dev-python/knowit/knowit-0.7.1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 2025-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( python3_{13..14} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Know better your media files"
+HOMEPAGE="
+ https://github.com/ratoaq2/knowit/
+ https://pypi.org/project/knowit/
+"
+SRC_URI+="
+ test? (
+ https://downloads.sourceforge.net/matroska/test_files/matroska_test_w1_1.zip
+ )
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+
+# https://github.com/ratoaq2/knowit/blob/d7135a4797440838bca94e76326fc9d4019d8f9a/README.md?plain=1#L224
+RDEPEND="
+ >=dev-python/babelfish-0.6.1[${PYTHON_USEDEP}]
+ >=dev-python/enzyme-0.5.2[${PYTHON_USEDEP}]
+ >=dev-python/trakit-0.2.2[${PYTHON_USEDEP}]
+ >=dev-python/pymediainfo-7.0.1[${PYTHON_USEDEP}]
+ >=dev-python/pyyaml-6.0[${PYTHON_USEDEP}]
+ || (
+ media-video/ffmpeg
+ media-video/mediainfo
+ media-video/mkvtoolnix
+ )
+"
+BDEPEND="
+ test? (
+ app-arch/unzip
+ >=dev-python/requests-2.32.4[${PYTHON_USEDEP}]
+ media-video/ffmpeg
+ media-video/mediainfo
+ media-video/mkvtoolnix
+ )
+"
+
+EPYTEST_PLUGINS=()
+distutils_enable_tests pytest
+
+EPYTEST_DESELECT=(
+ # requires running from the git repository
+ tests/test_check_knowledge.py::test_repository_knowledge_is_consistent
+)
+
+src_unpack() {
+ # Needed to unpack the test data
+ default
+
+ if [[ ${PV} == 9999 ]] ; then
+ git-r3_src_unpack
+ fi
+}
+
+src_prepare() {
+ if use test ; then
+ mkdir -p tests/data/videos || die
+ ln -s "${WORKDIR}"/test*.mkv tests/data/videos/ || die
+ fi
+
+ distutils-r1_src_prepare
+}