blob: 7305be162348aad30d981f8bf9191d2ea6037aee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..9} )
inherit distutils-r1
DESCRIPTION="Twitter scraping & OSINT tool written in Python that doesn't use Twitter's API"
HOMEPAGE="
https://github.com/twintproject/twint
https://pypi.org/project/twint/
"
SRC_URI="https://github.com/twintproject/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RDEPEND="
dev-python/aiohttp[${PYTHON_USEDEP}]
dev-python/aiohttp-socks[${PYTHON_USEDEP}]
dev-python/aiodns[${PYTHON_USEDEP}]
dev-python/beautifulsoup4[${PYTHON_USEDEP}]
dev-python/cchardet[${PYTHON_USEDEP}]
dev-python/elasticsearch-py[${PYTHON_USEDEP}]
dev-python/fake-useragent[${PYTHON_USEDEP}]
dev-python/googletransx[${PYTHON_USEDEP}]
>=dev-python/pandas-0.23.0[${PYTHON_USEDEP}]
dev-python/PySocks[${PYTHON_USEDEP}]
dev-python/schedule[${PYTHON_USEDEP}]
sci-geosciences/geopy[${PYTHON_USEDEP}]
"
BDEPEND="test? ( ${RDEPEND} )"
RESTRICT="test"
PROPERTIES="test_network"
python_test() {
"${EPYTHON}" test.py -v || die
}
|