diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2023-05-15 08:46:05 +0200 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2023-05-15 08:46:05 +0200 |
commit | 7980a313dc63875aa63d2553221bae9173715edb (patch) | |
tree | e805cd1331f874bf6d83c89d7ffd7c46ae20c4e5 /sci-libs | |
parent | sci-libs/caffe2: if cuda require tensorpipe[cuda] (diff) | |
download | gentoo-7980a313dc63875aa63d2553221bae9173715edb.tar.gz gentoo-7980a313dc63875aa63d2553221bae9173715edb.tar.bz2 gentoo-7980a313dc63875aa63d2553221bae9173715edb.zip |
sci-libs/seqeval: new package, add 1.2.2
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/seqeval/Manifest | 1 | ||||
-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, 59 insertions, 0 deletions
diff --git a/sci-libs/seqeval/Manifest b/sci-libs/seqeval/Manifest new file mode 100644 index 000000000000..509db7dd33b7 --- /dev/null +++ b/sci-libs/seqeval/Manifest @@ -0,0 +1 @@ +DIST seqeval-1.2.2.gh.tar.gz 42187 BLAKE2B c0ae8b71fab3d29381d5e2bc70f733b5d176b8a447ee7803a8b4681a1fbd9d197e288c1e3c1239454b5c669addc4977d8a3274c63884529d8c682bf584f2cd3a SHA512 794b817dcd19bc60ecc1c3c3f188bb17b2786dd3629691c43a594443b6dd2a3298b398309d5f14817ff1e0e37859fe109175b8bd48d0d30243de0ea4845c381a 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 +} |