2021-06-04 11:07:04 +02:00
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
2020-03-29 21:22:56 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2021-06-14 18:52:49 +02:00
|
|
|
EAPI="7"
|
2020-03-29 21:22:56 +02:00
|
|
|
|
2021-06-14 18:52:49 +02:00
|
|
|
PYTHON_COMPAT=( python3_{8..10} )
|
2020-03-29 21:22:56 +02:00
|
|
|
|
|
|
|
inherit distutils-r1
|
|
|
|
|
|
|
|
MY_PN=${PN/-/_}
|
|
|
|
MY_P=${MY_PN}-${PV}
|
|
|
|
|
|
|
|
DESCRIPTION="python_openzwave is a python wrapper for the openzwave c++ library."
|
|
|
|
HOMEPAGE="https://home-assistant.io/ https://pypi.org/project/homeassistant-pyozw/ https://www.openzwave.net/"
|
|
|
|
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${MY_P}.zip -> ${P}.zip
|
|
|
|
https://raw.githubusercontent.com/home-assistant/python-openzwave/hass/archives/open-zwave-hass-${PV}.zip"
|
|
|
|
|
|
|
|
LICENSE="GPL-3+"
|
|
|
|
SLOT="0"
|
2020-11-02 16:51:42 +01:00
|
|
|
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
2020-03-29 21:22:56 +02:00
|
|
|
IUSE="test"
|
|
|
|
|
|
|
|
RDEPEND=""
|
|
|
|
DEPEND="${REDEPEND}
|
|
|
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
|
|
test? (
|
|
|
|
dev-python/nose[${PYTHON_USEDEP}]
|
|
|
|
dev-python/pytest[${PYTHON_USEDEP}]
|
|
|
|
)"
|
|
|
|
|
|
|
|
S=${WORKDIR}/${MY_PN}
|
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
unpack ${A}
|
|
|
|
mkdir ${MY_PN}/openzwave-embed
|
|
|
|
mv open-zwave-hass ${MY_PN}/openzwave-embed/
|
|
|
|
}
|
|
|
|
|
|
|
|
python_test() {
|
|
|
|
nosetests --verbose || die
|
|
|
|
py.test -v -v || die
|
|
|
|
}
|