42 lines
915 B
Bash
42 lines
915 B
Bash
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
|
|
PYTHON_COMPAT=( python3_{6,7,8} )
|
|
|
|
inherit distutils-r1 git-r3
|
|
|
|
DESCRIPTION="Remote control Samsung televisions via TCP/IP connection (kdschlosser version)"
|
|
HOMEPAGE="https://github.com/kdschlosser/samsungctl"
|
|
EGIT_REPO_URI="https://github.com/kdschlosser/samsungctl.git"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
|
IUSE="test"
|
|
|
|
MY_PN="samsungctl"
|
|
|
|
RDEPEND="dev-python/websocket-client
|
|
dev-python/requests
|
|
dev-python/pycryptodome
|
|
dev-python/lxml
|
|
dev-python/ifaddr
|
|
dev-python/six"
|
|
|
|
DEPEND="${REDEPEND}
|
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
test? (
|
|
dev-python/nose[${PYTHON_USEDEP}]
|
|
dev-python/pytest[${PYTHON_USEDEP}]
|
|
)"
|
|
|
|
#S="${WORKDIR}/python-${P}"
|
|
PYTHON_MODULES="${MY_PN}"
|
|
|
|
python_test() {
|
|
nosetests --verbose || die
|
|
py.test -v -v || die
|
|
}
|