HomeAssistantRepository/dev-python/aiounittest/aiounittest-1.4.0.ebuild

33 lines
724 B
Bash
Raw Normal View History

2021-07-02 20:04:34 +02:00
# Copyright 1999-2021 Gentoo Authors
2020-11-01 20:02:08 +01:00
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
2021-07-02 20:04:34 +02:00
PYTHON_COMPAT=( python3_{8..10} )
2020-11-01 20:02:08 +01:00
inherit distutils-r1
DESCRIPTION="Test asyncio code more easily."
HOMEPAGE="https://github.com/kwarunek/aiounittest https://pypi.org/project/aiounittest/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
2020-11-01 20:02:08 +01:00
IUSE="test"
2021-07-02 20:04:34 +02:00
DOCS="README.rst"
2020-11-01 20:02:08 +01:00
RDEPEND="dev-python/wrapt[${PYTHON_USEDEP}]"
BDEPEND="
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
}