summaryrefslogtreecommitdiff
path: root/sci-ml/jiwer
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2025-03-16 00:29:23 +0000
committerV3n3RiX <venerix@koprulu.sector>2025-03-16 00:29:23 +0000
commit18f850bb4cedde39678b12a67f82f29eef2dab63 (patch)
tree2f545c16653e3357cfdd14bf26b623d62cc18eba /sci-ml/jiwer
parentbcdfc870ecd1de7eea04df21ec3a069328b2e29f (diff)
gentoo auto-resync : 16:03:2025 - 00:29:23
Diffstat (limited to 'sci-ml/jiwer')
-rw-r--r--sci-ml/jiwer/Manifest4
-rw-r--r--sci-ml/jiwer/files/jiwer-3.0.1-tests.patch31
-rw-r--r--sci-ml/jiwer/jiwer-3.0.3.ebuild27
-rw-r--r--sci-ml/jiwer/metadata.xml12
4 files changed, 74 insertions, 0 deletions
diff --git a/sci-ml/jiwer/Manifest b/sci-ml/jiwer/Manifest
new file mode 100644
index 000000000000..cb1b42b5e9bc
--- /dev/null
+++ b/sci-ml/jiwer/Manifest
@@ -0,0 +1,4 @@
+AUX jiwer-3.0.1-tests.patch 790 BLAKE2B dda351c97d0807c327d0438eb3849e15a9b30753c3e7350fa522ebc6d861fa5f3ecbf01b9c55bfad921e6a605178c0175ead21f450677518da26de9faf2120d4 SHA512 e8b8bacbb051b20e8b6cf9e93542dd31828cc052fea773335d7ec4b8a27d2c06c2ba7a8a58f91d02434907aeb1d499e411d69e6daf56cb3420a3ccfbcc51ea35
+DIST jiwer-3.0.3.gh.tar.gz 24092 BLAKE2B 593170953a8f56d654b7a749fd7b8a636065c1a3b1e51b810b1768b8acd817474010025d758a3af984bbe9d4d834411d8a5df446174e87b839be1325fbd1085f SHA512 fbd9d7a5d8c2056e99f47cf55ef8661fcf96ccd16bafe28f40036477def6e7ff433bd372169fdc92c5b727e106e90353468205d2d8238726ea501c3cbab8d156
+EBUILD jiwer-3.0.3.ebuild 612 BLAKE2B 84e7e59095f6759de0d3fa8426dd3490344cd9b135c8ad3f5f382562d51a48f3b53f2ce8b5854c8ffff5a5e9b4f6c1dd54e98e17c3da0a798e7ef644a5d11e09 SHA512 3b288b2adf6938b4d8ee2109c4fea5c103ef08b53fb2c3bd9dcffc9ad48b74325e83f522f4c3b1ebe96df4dc311637f77cda50c4329af1edee7436e6bd84e729
+MISC metadata.xml 367 BLAKE2B 474dd86fe7addc587bea0b16430e99e5c69148099c1fba0cd58022dbe83411e83e1455320ed4ea1a54c4c74932bcbaa5e793223023d795639babb64d7751a876 SHA512 9bbed0bbfca58ff29129a6e3cceaa075da22576c840595e0a1471baa8e8e00f4f3407c88bbd46755c498a058d89220e3c0864157fd61850ab4c73d3f2c4a110e
diff --git a/sci-ml/jiwer/files/jiwer-3.0.1-tests.patch b/sci-ml/jiwer/files/jiwer-3.0.1-tests.patch
new file mode 100644
index 000000000000..cfd9530985a3
--- /dev/null
+++ b/sci-ml/jiwer/files/jiwer-3.0.1-tests.patch
@@ -0,0 +1,31 @@
+--- a/tests/test_speed.py 2023-05-14 18:22:53.206560417 +0200
++++ b/tests/test_speed.py 2023-05-14 18:24:35.611996479 +0200
+@@ -1,4 +1,6 @@
+ from jiwer import wer
++import pytest
++
+
+
+ def perform_computation(num_sentences):
+@@ -8,17 +10,21 @@
+ wer(truth, hypo)
+
+
++@pytest.mark.skip(reason="require pytest-benchmark")
+ def test_speed_n1(benchmark):
+ benchmark(perform_computation, 1)
+
+
++@pytest.mark.skip(reason="require pytest-benchmark")
+ def test_speed_n10(benchmark):
+ benchmark(perform_computation, 10)
+
+
++@pytest.mark.skip(reason="require pytest-benchmark")
+ def test_speed_n100(benchmark):
+ benchmark(perform_computation, 100)
+
+
++@pytest.mark.skip(reason="require pytest-benchmark")
+ def test_speed_n1000(benchmark):
+ benchmark(perform_computation, 1000)
diff --git a/sci-ml/jiwer/jiwer-3.0.3.ebuild b/sci-ml/jiwer/jiwer-3.0.3.ebuild
new file mode 100644
index 000000000000..19fee4f99c73
--- /dev/null
+++ b/sci-ml/jiwer/jiwer-3.0.3.ebuild
@@ -0,0 +1,27 @@
+# Copyright 2023-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_{9..12} )
+inherit distutils-r1
+
+DESCRIPTION="Evaluate an automatic speech recognition system"
+HOMEPAGE="
+ https://github.com/jitsi/jiwer
+ https://pypi.org/project/jiwer/
+"
+SRC_URI="https://github.com/jitsi/${PN}/archive/refs/tags/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+RDEPEND="
+ dev-python/rapidfuzz[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+PATCHES=( "${FILESDIR}"/${PN}-3.0.1-tests.patch )
diff --git a/sci-ml/jiwer/metadata.xml b/sci-ml/jiwer/metadata.xml
new file mode 100644
index 000000000000..183cb49efbc4
--- /dev/null
+++ b/sci-ml/jiwer/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>tupone@gentoo.org</email>
+ <name>Tupone Alfredo</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">jiwer</remote-id>
+ <remote-id type="github">jitsi/jiwer</remote-id>
+ </upstream>
+</pkgmetadata>