commit: 4b32c2756381b82d1cf54fdcdedf1e207f592284
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 28 10:37:19 2022 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Fri Oct 28 10:37:25 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b32c275
dev-python/abydos: update EAPI 7 -> 8, enable py3.11, pep517
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
dev-python/abydos/Manifest | 1 +
dev-python/abydos/abydos-0.5.0-r2.ebuild | 44 ++++++++++++++++++++++++++++++++
2 files changed, 45 insertions(+)
diff --git a/dev-python/abydos/Manifest b/dev-python/abydos/Manifest
index 574f09097b0e..d9c244d155a7 100644
--- a/dev-python/abydos/Manifest
+++ b/dev-python/abydos/Manifest
@@ -1 +1,2 @@
+DIST abydos-0.5.0.gh.tar.gz 21321759 BLAKE2B
1f14675f42e849e5e1563dd858bfb2bf040e25b0f90cb3da9986492378892bedd0f23eea990cd65d804aececb350b0e90fb27921382a8df8b91e55d7f820c27e
SHA512
28aeea4ba16ea88b077e8b9902f5d8b3a650eeced489687daf9af0e4aa437eaee6c8eeb0747dd5a8f95291594064a1221cc1da2dfa989978bcc870045fee3531
DIST abydos-0.5.0.tar.gz 21321759 BLAKE2B
1f14675f42e849e5e1563dd858bfb2bf040e25b0f90cb3da9986492378892bedd0f23eea990cd65d804aececb350b0e90fb27921382a8df8b91e55d7f820c27e
SHA512
28aeea4ba16ea88b077e8b9902f5d8b3a650eeced489687daf9af0e4aa437eaee6c8eeb0747dd5a8f95291594064a1221cc1da2dfa989978bcc870045fee3531
diff --git a/dev-python/abydos/abydos-0.5.0-r2.ebuild
b/dev-python/abydos/abydos-0.5.0-r2.ebuild
new file mode 100644
index 000000000000..22bcda516f48
--- /dev/null
+++ b/dev-python/abydos/abydos-0.5.0-r2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..11} )
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1
+
+DESCRIPTION="Abydos NLP/IR library"
+HOMEPAGE="https://github.com/chrislit/abydos"
+SRC_URI="https://github.com/chrislit/${PN}/archive/v${PV}.tar.gz ->
${P}.gh.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv ~x86"
+
+# Requires access to the internet
+RESTRICT="test"
+PROPERTIES="test_network"
+
+RDEPEND="
+ dev-python/deprecation[${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+"
+
+BDEPEND="test? (
+ dev-python/nltk[${PYTHON_USEDEP}]
+)"
+
+PATCHES=(
+ "${FILESDIR}/${P}-fix-py3.10.patch"
+)
+
+distutils_enable_tests pytest
+# Extension error: You must configure the bibtex_bibfiles setting
+#distutils_enable_sphinx docs dev-python/sphinx_rtd_theme
dev-python/sphinxcontrib-bibtex
+
+python_prepare_all() {
+ # do not depend on pytest-cov
+ sed -i -e '/addopts/d' setup.cfg || die
+
+ distutils-r1_python_prepare_all
+}