Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/nltk/
Date: Thu, 08 Apr 2021 07:42:02
Message-Id: 1617867715.189cd6b1ce60b64fc716470873938e8c902225de.mgorny@gentoo
1 commit: 189cd6b1ce60b64fc716470873938e8c902225de
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 8 06:28:49 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 8 07:41:55 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=189cd6b1
7
8 dev-python/nltk: Bump to 3.6.1
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/nltk/Manifest | 1 +
13 dev-python/nltk/nltk-3.6.1.ebuild | 57 +++++++++++++++++++++++++++++++++++++++
14 2 files changed, 58 insertions(+)
15
16 diff --git a/dev-python/nltk/Manifest b/dev-python/nltk/Manifest
17 index ac52e0a5715..917e6461ad3 100644
18 --- a/dev-python/nltk/Manifest
19 +++ b/dev-python/nltk/Manifest
20 @@ -1 +1,2 @@
21 DIST nltk-3.5.tar.gz 2805844 BLAKE2B d2494d831cf5503ac938b203e405ebae606166dbb907655113d3a5267bd54f03b6d8d5ac9e545fefd0b7855ce0c985064c9e746e402c540e19546e2d11ec151e SHA512 056ae219af607c158f1f2adc6fb9b4f402721778c13bf5ebc178deaf631142ad3e571d8b1fd96145067833cbeac4db25fc07c3fd032188c2d8ee7e5d7bd824f6
22 +DIST nltk-3.6.1.tar.gz 2820223 BLAKE2B 74ae44376e8f59e4ccfd4bdb5d6f535a8480733a2fdc6a8f1117a551f64d9f6404ca237bd27cd4a4a9d32443d38179c7a1c824e00e808868d45e468ab84eb1bd SHA512 ab0e8abc938fa0bfadc3f02dc583749775a6c06d2d2ee30692ccd9c118277fd79cfed02f858d4347dacbe87f146cb8f9af1203a8d68685f131da5f6b127b86cb
23
24 diff --git a/dev-python/nltk/nltk-3.6.1.ebuild b/dev-python/nltk/nltk-3.6.1.ebuild
25 new file mode 100644
26 index 00000000000..ad969214c4b
27 --- /dev/null
28 +++ b/dev-python/nltk/nltk-3.6.1.ebuild
29 @@ -0,0 +1,57 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +DISTUTILS_USE_SETUPTOOLS=rdepend
36 +PYTHON_COMPAT=( python3_{7..9} )
37 +PYTHON_REQ_USE="sqlite,tk?,xml(+)"
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="Natural Language Toolkit"
42 +HOMEPAGE="https://www.nltk.org/ https://github.com/nltk/nltk/"
43 +SRC_URI="https://github.com/nltk/nltk/archive/${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="Apache-2.0"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
48 +IUSE="tk"
49 +
50 +RDEPEND="
51 + dev-python/click[${PYTHON_USEDEP}]
52 + dev-python/joblib[${PYTHON_USEDEP}]
53 + dev-python/regex[${PYTHON_USEDEP}]
54 + dev-python/tqdm[${PYTHON_USEDEP}]
55 +"
56 +BDEPEND="
57 + test? (
58 + dev-python/joblib[${PYTHON_USEDEP}]
59 + >=dev-python/nltk-data-20200312-r1
60 + dev-python/numpy[${PYTHON_USEDEP}]
61 + dev-python/pyparsing[${PYTHON_USEDEP}]
62 + dev-python/twython[${PYTHON_USEDEP}]
63 + sci-libs/scikit-learn[${PYTHON_USEDEP}]
64 + dev-python/scipy[${PYTHON_USEDEP}]
65 + )"
66 +PDEPEND="dev-python/nltk-data"
67 +
68 +distutils_enable_tests pytest
69 +
70 +src_prepare() {
71 + # requires unpackaged pycrfsuite
72 + sed -i -e '/>>>/s@$@ # doctest: +SKIP@' nltk/tag/crf.py || die
73 + # replace fetching from network with duplicate file URL
74 + sed -e 's@https://raw.githubusercontent.com/nltk/nltk/develop/nltk/test/toy.cfg@nltk:grammars/sample_grammars/toy.cfg@' \
75 + -i nltk/test/data.doctest || die
76 + # requires X and hangs in Xvfb
77 + sed -e 's:test_plot:_&:' \
78 + -i nltk/test/unit/test_cfd_mutation.py || die
79 +
80 + distutils-r1_src_prepare
81 +}
82 +
83 +src_test() {
84 + cd nltk/test || die
85 + distutils-r1_src_test
86 +}