diff options
Diffstat (limited to 'sci-libs/seqeval')
-rw-r--r-- | sci-libs/seqeval/Manifest | 4 | ||||
-rw-r--r-- | sci-libs/seqeval/files/seqeval-1.2.2-gentoo.patch | 10 | ||||
-rw-r--r-- | sci-libs/seqeval/metadata.xml | 12 | ||||
-rw-r--r-- | sci-libs/seqeval/seqeval-1.2.2.ebuild | 36 |
4 files changed, 62 insertions, 0 deletions
diff --git a/sci-libs/seqeval/Manifest b/sci-libs/seqeval/Manifest new file mode 100644 index 000000000000..1ef4b7602928 --- /dev/null +++ b/sci-libs/seqeval/Manifest @@ -0,0 +1,4 @@ +AUX seqeval-1.2.2-gentoo.patch 450 BLAKE2B fd44e8b8d6b421e7790ac7b7c32d260db1ff20ddec6c1c15f8bf244458776b1e201204405bfb718fa2ab12bd602de548b16228b1f7968ce3eebb6ec6c4b55742 SHA512 b26c0c01e4285f683e16da8da0be96161c3e697725dda75d9daa0b5e89294099eab0af8c3a501f33525e7fc0e5c698060f1fe4228d95ef3216dcba919da4853a +DIST seqeval-1.2.2.gh.tar.gz 42187 BLAKE2B c0ae8b71fab3d29381d5e2bc70f733b5d176b8a447ee7803a8b4681a1fbd9d197e288c1e3c1239454b5c669addc4977d8a3274c63884529d8c682bf584f2cd3a SHA512 794b817dcd19bc60ecc1c3c3f188bb17b2786dd3629691c43a594443b6dd2a3298b398309d5f14817ff1e0e37859fe109175b8bd48d0d30243de0ea4845c381a +EBUILD seqeval-1.2.2.ebuild 752 BLAKE2B f8e51652b7b9f949190e3dcee922ee7660d6095feeff8b144731f83d0c440edade13115621813ce95d56cc7ca7ac10c3b8437076e559acf2a400d9e00f54f5b0 SHA512 4f4629d9f9f8b44053378d3a7aea1ca5581cf05303720df791c8b975e122002b1744a7e181c3c0175cab03951c41aabebe82d7aec81fb4876a15dcf1215f698c +MISC metadata.xml 378 BLAKE2B 3f985472075cf2a650e8e2851d63fb69fcae8bba196b04809cea8158922aea385320d813a7ca18c96b33242b7c4e154ba92b1ff0a26e37450112df3c3e5e9484 SHA512 d227df0c4c1735b8bca799e4bdec447a15d532e63d1c6a6eb2ad634a63a13baee62f403c87db4fbe1b36ea0b1b34fda3b95b5781a7432ccae2904b0c92005664 diff --git a/sci-libs/seqeval/files/seqeval-1.2.2-gentoo.patch b/sci-libs/seqeval/files/seqeval-1.2.2-gentoo.patch new file mode 100644 index 000000000000..17af496e249a --- /dev/null +++ b/sci-libs/seqeval/files/seqeval-1.2.2-gentoo.patch @@ -0,0 +1,10 @@ +--- a/tests/test_metrics.py 2023-05-04 09:00:31.656558311 +0200 ++++ b/tests/test_metrics.py 2023-05-04 09:02:09.151781216 +0200 +@@ -158,6 +158,7 @@ + self.assertLess(abs(r_pred - r_pred_inv), 1e-4) + self.assertLess(abs(f1_pred - f1_pred_inv), 1e-4) + ++ @pytest.mark.skip(reason="take too much time to finish") + def test_statistical_tests(self): + filepath = 'eval_data.txt' + for prefix in ['BIO', 'EIO']: diff --git a/sci-libs/seqeval/metadata.xml b/sci-libs/seqeval/metadata.xml new file mode 100644 index 000000000000..11047fcb8a30 --- /dev/null +++ b/sci-libs/seqeval/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">seqeval</remote-id> + <remote-id type="github">chakki-works/seqeval</remote-id> + </upstream> +</pkgmetadata> diff --git a/sci-libs/seqeval/seqeval-1.2.2.ebuild b/sci-libs/seqeval/seqeval-1.2.2.ebuild new file mode 100644 index 000000000000..a0b7601ae359 --- /dev/null +++ b/sci-libs/seqeval/seqeval-1.2.2.ebuild @@ -0,0 +1,36 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) +inherit distutils-r1 + +DESCRIPTION="Python framework for sequence labeling evaluation" +HOMEPAGE=" + https://pypi.org/project/seqeval/ + https://github.com/chakki-works/seqeval +" +SRC_URI="https://github.com/chakki-works/${PN}/archive/refs/tags/v${PV}.tar.gz + -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND="test? ( dev-python/setuptools-scm )" + +distutils_enable_tests pytest + +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) + +src_compile() { + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} + distutils-r1_src_compile +} + +src_test() { + cd tests + distutils-r1_src_test +} |