2020-05-12 02:41:45 -04:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
2019-03-18 16:31:10 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
2020-05-12 02:41:45 -04:00
|
|
|
PYTHON_COMPAT=( python3_{6,7,8} )
|
2019-03-18 16:31:10 +01:00
|
|
|
|
|
|
|
inherit distutils-r1
|
|
|
|
|
|
|
|
DESCRIPTION="A Python publish-subcribe library"
|
2019-03-22 00:51:29 +01:00
|
|
|
HOMEPAGE="https://github.com/schollii/pypubsub/"
|
2019-03-18 16:31:10 +01:00
|
|
|
SRC_URI="
|
|
|
|
https://github.com/schollii/pypubsub/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
|
|
|
"
|
|
|
|
|
|
|
|
LICENSE="BSD"
|
2020-05-12 02:41:45 -04:00
|
|
|
SLOT="0"
|
2019-03-18 16:31:10 +01:00
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE="test"
|
|
|
|
|
|
|
|
DEPEND="test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
|
2020-05-12 02:41:45 -04:00
|
|
|
RDEPEND=""
|
2019-03-18 16:31:10 +01:00
|
|
|
|
|
|
|
python_test() {
|
|
|
|
distutils_install_for_testing
|
|
|
|
cd "tests/suite" || die
|
|
|
|
pytest -vv || die
|
|
|
|
}
|