HomeAssistantRepository/dev-python/config/config-0.5.0.ebuild

31 lines
747 B
Bash

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_{6..8} )
inherit distutils-r1
DESCRIPTION="A hierarchical, easy-to-use, powerful configuration module for Python"
HOMEPAGE="https://github.com/vsajip/py-cfg-lib/ https://docs.red-dove.com/cfg/python.html https://pypi.org/project/config/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.zip"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
IUSE="test"
RDEPEND=""
BDEPEND="${REDEPEND}
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
}