From 4cbcc855382a06088e2f016f62cafdbcb7e40665 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 20 Mar 2022 00:40:44 +0000 Subject: gentoo resync : 20.03.2022 --- dev-python/nltk/Manifest | 4 +-- dev-python/nltk/nltk-3.6.7.ebuild | 61 -------------------------------------- dev-python/nltk/nltk-3.7.ebuild | 62 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+), 63 deletions(-) delete mode 100644 dev-python/nltk/nltk-3.6.7.ebuild create mode 100644 dev-python/nltk/nltk-3.7.ebuild (limited to 'dev-python/nltk') diff --git a/dev-python/nltk/Manifest b/dev-python/nltk/Manifest index 91c7c8e735d8..559b88c65875 100644 --- a/dev-python/nltk/Manifest +++ b/dev-python/nltk/Manifest @@ -1,3 +1,3 @@ -DIST nltk-3.6.7.tar.gz 2848416 BLAKE2B 8bc6672c17741c93da15b3c4ec9af484915ffd9fc857dbbfa94d949063c8e44c5f672e076b69213a033b7bec8e14baa099c69748eef4688fa09635de662f5037 SHA512 07f117835e1bf99d73a03f1279da0104a955e36f41c9648be19652481c58758900d5d2ff4633203254cee1e27c6cc129fe5d6e388de0711f2052e3e76a746edf -EBUILD nltk-3.6.7.ebuild 1709 BLAKE2B e82f62c7342c4f6ff19ba93e414c220b711332d6d251e91567b58f24e149ac588025c9fb64f5aca9d79ecebece637e1a8c8a5d13cc2a83e5d285dbe0355c82c1 SHA512 d284e6658716115ac89ca6a6ae864ef57a4d30d53d4836b8e1ab19d30f8f286a1dbbb532cd1ed51b347a468990965778fc95cabf0f82f8942a35f024adb0c1ff +DIST nltk-3.7.tar.gz 2851947 BLAKE2B 4cd4fed9f26de7996bcabbd71d500c072489e79ae0edb29f09577e465227c948efa7130af6975b029e77fb79db015437a9e3311eb28048d02dcc2356441d0908 SHA512 66d79afa59f18f2bf7d086dcb22813c7b92239c05669daa62866dbda06c0ca22367317749cf19db3e41a7bdb405d4f87f72b695aa58fd0669bf36de64f1f9888 +EBUILD nltk-3.7.ebuild 1741 BLAKE2B defe76f52ff243bd984e0d1d391b3e80545af784b2c667b43d7c56dca8509e206f9c51237ce556c9a1e2b5258d2ea264bd2c14672d5dfc951cf7b7e753b57269 SHA512 d9769bdb9ee415f6bdcdcb45458d3f0d6f7996bfd20f85cb7d6f3b318361b84dfe3ec453db2a7f8ac8992e9599741e428413e64d222134a59f1d35b074eb2c91 MISC metadata.xml 430 BLAKE2B 9c67c091a126c4af98c56de2d8227c1da65fbfad00671825642daefa117d711475b804bd90d72345e43d519a9219e195c1de1579dd6d60f6663c9813fc9c0d81 SHA512 5707c61031544a51e298d9c4c70685011f06b9d65c2370ecba6ecc23491c92fcc30988b6c0c28cb16f21eddebe412fff978a8f9661e5e95b9cff249f81420018 diff --git a/dev-python/nltk/nltk-3.6.7.ebuild b/dev-python/nltk/nltk-3.6.7.ebuild deleted file mode 100644 index 186d7f12a356..000000000000 --- a/dev-python/nltk/nltk-3.6.7.ebuild +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8..10} ) -PYTHON_REQ_USE="sqlite,tk?,xml(+)" - -inherit distutils-r1 - -DESCRIPTION="Natural Language Toolkit" -HOMEPAGE="https://www.nltk.org/ https://github.com/nltk/nltk/" -SRC_URI="https://github.com/nltk/nltk/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris" -IUSE="tk" - -RDEPEND=" - dev-python/click[${PYTHON_USEDEP}] - dev-python/joblib[${PYTHON_USEDEP}] - dev-python/regex[${PYTHON_USEDEP}] - dev-python/tqdm[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - dev-python/joblib[${PYTHON_USEDEP}] - >=dev-python/nltk-data-20211221 - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/pyparsing[${PYTHON_USEDEP}] - dev-python/pytest-mock[${PYTHON_USEDEP}] - dev-python/twython[${PYTHON_USEDEP}] - sci-libs/scikit-learn[${PYTHON_USEDEP}] - dev-python/scipy[${PYTHON_USEDEP}] - dev-python/matplotlib[${PYTHON_USEDEP}] - )" -PDEPEND="dev-python/nltk-data" - -distutils_enable_tests pytest - -EPYTEST_DESELECT=( - # Internet - unit/test_downloader.py::test_downloader_using_existing_parent_download_dir - unit/test_downloader.py::test_downloader_using_non_existing_parent_download_dir -) - -src_prepare() { - # requires unpackaged pycrfsuite - sed -i -e '/>>>/s@$@ # doctest: +SKIP@' nltk/tag/crf.py || die - # replace fetching from network with duplicate file URL - sed -e 's@https://raw.githubusercontent.com/nltk/nltk/develop/nltk/test/toy.cfg@nltk:grammars/sample_grammars/toy.cfg@' \ - -i nltk/test/data.doctest || die - - distutils-r1_src_prepare -} - -src_test() { - cd nltk/test || die - distutils-r1_src_test -} diff --git a/dev-python/nltk/nltk-3.7.ebuild b/dev-python/nltk/nltk-3.7.ebuild new file mode 100644 index 000000000000..99b89b9d3800 --- /dev/null +++ b/dev-python/nltk/nltk-3.7.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_REQ_USE="sqlite,tk?,xml(+)" + +inherit distutils-r1 + +DESCRIPTION="Natural Language Toolkit" +HOMEPAGE="https://www.nltk.org/ https://github.com/nltk/nltk/" +SRC_URI="https://github.com/nltk/nltk/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris" +IUSE="tk" + +RDEPEND=" + dev-python/click[${PYTHON_USEDEP}] + dev-python/joblib[${PYTHON_USEDEP}] + dev-python/regex[${PYTHON_USEDEP}] + dev-python/tqdm[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/joblib[${PYTHON_USEDEP}] + >=dev-python/nltk-data-20211221 + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pyparsing[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/twython[${PYTHON_USEDEP}] + sci-libs/scikit-learn[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + )" +PDEPEND="dev-python/nltk-data" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # Internet + unit/test_downloader.py::test_downloader_using_existing_parent_download_dir + unit/test_downloader.py::test_downloader_using_non_existing_parent_download_dir +) + +src_prepare() { + # requires unpackaged pycrfsuite + sed -i -e '/>>>/s@$@ # doctest: +SKIP@' nltk/tag/crf.py || die + # replace fetching from network with duplicate file URL + sed -e 's@https://raw.githubusercontent.com/nltk/nltk/develop/nltk/test/toy.cfg@nltk:grammars/sample_grammars/toy.cfg@' \ + -i nltk/test/data.doctest || die + + distutils-r1_src_prepare +} + +src_test() { + cd nltk/test || die + distutils-r1_src_test +} -- cgit v1.2.3