summaryrefslogtreecommitdiff
blob: 08b9e799a1c306725402d70887ea9f71b87c00f6 (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
43
44
45
46
47
48
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

PYTHON_COMPAT=( python3_{4,5} )
inherit distutils-r1

if [[ ${PV} = *9999* ]]; then
	EGIT_REPO_URI="https://github.com/tdryer/${PN}"
	inherit git-r3
else
	SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
	KEYWORDS="~amd64"
fi

DESCRIPTION="Third Party IM Client for Google Hangouts"
HOMEPAGE="https://pypi.org/project/hangups"

LICENSE="MIT"
SLOT="0"
IUSE="test"

PATCHES=(
	"${FILESDIR}"/unpin-dependencies.patch
)

COMMON_DEPEND=">=dev-python/configargparse-0.11.0[${PYTHON_USEDEP}]
	>=dev-python/aiohttp-1.2.0[${PYTHON_USEDEP}]
	<dev-python/aiohttp-1.3.0
	>=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}]
	>=dev-python/readlike-0.1.2[${PYTHON_USEDEP}]
	>=dev-python/requests-2.6.0[${PYTHON_USEDEP}]
	<dev-python/requests-3.0.0
	>=dev-python/ReParser-1.4.3[${PYTHON_USEDEP}]
	>=dev-python/protobuf-python-3.1.0[${PYTHON_USEDEP}]
	>=dev-python/urwid-1.3.1[${PYTHON_USEDEP}]
	>=dev-python/MechanicalSoup-0.6.0[${PYTHON_USEDEP}]"
	DEPEND="${COMMON_DEPEND}
	dev-python/setuptools[${PYTHON_USEDEP}]
	test? (
		>=dev-python/pytest-3.0.5[${PYTHON_USEDEP}]
		>=dev-python/pylint-1.6.4[${PYTHON_USEDEP}]
		>=dev-python/pycodestyle-2.2.0[${PYTHON_USEDEP}]
		>=dev-python/httpretty-0.8.14[${PYTHON_USEDEP}]
	)
"
RDEPEND="${COMMON_DEPEND}"