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: Mon, 20 Sep 2021 13:41:31
Message-Id: 1632145175.23453bd55076b23a0aa205aded7d81e8ceb91148.mgorny@gentoo
1 commit: 23453bd55076b23a0aa205aded7d81e8ceb91148
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 20 07:12:37 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 20 13:39:35 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23453bd5
7
8 dev-python/nltk: Bump to 3.6.3
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.3.ebuild | 61 +++++++++++++++++++++++++++++++++++++++
14 2 files changed, 62 insertions(+)
15
16 diff --git a/dev-python/nltk/Manifest b/dev-python/nltk/Manifest
17 index 5ec770ae13e..41336034648 100644
18 --- a/dev-python/nltk/Manifest
19 +++ b/dev-python/nltk/Manifest
20 @@ -1 +1,2 @@
21 DIST nltk-3.6.2.tar.gz 2819833 BLAKE2B 9796822c35c524432e9790d0890b4388fbaa85b659e5415037422a22e8edbaf20775196b4416f441d62592b387066de9f7741b988c0d463349fc5c906bfd75b2 SHA512 3fd2cba52377613f35f6574f859482de987f969cfc8d4243a859be365ab1bd8300f9013dcedc6caeff7aa7fc035b331a47b557027209ca9a85b0cc7fbde44d6d
22 +DIST nltk-3.6.3.tar.gz 2824924 BLAKE2B fcab6647f43f4bf139857e9f4202aee688f564851976ed6a183e47361451fae771318346724e41f198b82cebdd5a47f151aaf932099143ef6faa2a77430fbfb4 SHA512 fe7244967df018670501304d1a8aa50a0f4d42bb0c73cc5e202eeab6a0f5da1eaed9b961f6026e3b8ae4b0393d788bcb58b263ba22a3ce6f5644022736035f98
23
24 diff --git a/dev-python/nltk/nltk-3.6.3.ebuild b/dev-python/nltk/nltk-3.6.3.ebuild
25 new file mode 100644
26 index 00000000000..d3f3e09ad50
27 --- /dev/null
28 +++ b/dev-python/nltk/nltk-3.6.3.ebuild
29 @@ -0,0 +1,61 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{8..10} )
36 +PYTHON_REQ_USE="sqlite,tk?,xml(+)"
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Natural Language Toolkit"
41 +HOMEPAGE="https://www.nltk.org/ https://github.com/nltk/nltk/"
42 +SRC_URI="https://github.com/nltk/nltk/archive/${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="Apache-2.0"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
47 +IUSE="tk"
48 +
49 +RDEPEND="
50 + dev-python/click[${PYTHON_USEDEP}]
51 + dev-python/joblib[${PYTHON_USEDEP}]
52 + dev-python/regex[${PYTHON_USEDEP}]
53 + dev-python/tqdm[${PYTHON_USEDEP}]
54 +"
55 +BDEPEND="
56 + test? (
57 + dev-python/joblib[${PYTHON_USEDEP}]
58 + >=dev-python/nltk-data-20200312-r1
59 + dev-python/numpy[${PYTHON_USEDEP}]
60 + dev-python/pyparsing[${PYTHON_USEDEP}]
61 + dev-python/pytest-mock[${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 +PATCHES=(
71 + "${FILESDIR}"/${P}-metadata.patch
72 +)
73 +
74 +src_prepare() {
75 + # requires unpackaged pycrfsuite
76 + sed -i -e '/>>>/s@$@ # doctest: +SKIP@' nltk/tag/crf.py || die
77 + # replace fetching from network with duplicate file URL
78 + sed -e 's@https://raw.githubusercontent.com/nltk/nltk/develop/nltk/test/toy.cfg@nltk:grammars/sample_grammars/toy.cfg@' \
79 + -i nltk/test/data.doctest || die
80 + # requires X and hangs in Xvfb
81 + sed -e 's:test_plot:_&:' \
82 + -i nltk/test/unit/test_cfd_mutation.py || die
83 +
84 + distutils-r1_src_prepare
85 +}
86 +
87 +src_test() {
88 + cd nltk/test || die
89 + distutils-r1_src_test
90 +}