HomeAssistantRepository/dev-python/broadlink/broadlink-0.17.0.ebuild

33 lines
750 B
Bash
Raw Normal View History

2021-03-15 22:25:46 +01:00
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
2019-05-22 14:15:12 +02:00
EAPI="7"
PYTHON_COMPAT=( python3_{8..10} )
2019-05-22 14:15:12 +02:00
inherit distutils-r1
2021-03-15 22:25:46 +01:00
DESCRIPTION="Python API for controlling Broadlink devices"
2019-11-12 12:43:33 +01:00
HOMEPAGE="https://github.com/mjg59/python-broadlink https://pypi.org/project/broadlink/"
2019-05-22 14:15:12 +02:00
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
2019-05-22 14:15:12 +02:00
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
2019-05-22 14:15:12 +02:00
IUSE="test"
2021-03-15 22:25:46 +01:00
DOCS="README.md"
RDEPEND=">=dev-python/cryptography-3.2[${PYTHON_USEDEP}]"
BDEPEND="
2019-05-22 14:15:12 +02:00
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
)"
python_test() {
nosetests --verbose || die
py.test -v -v || die
}