2019-02-26 00:54:01 +01:00
|
|
|
# Copyright 1999-2019 Gentoo Authors
|
2018-10-06 05:15:55 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
2019-02-26 00:54:01 +01:00
|
|
|
PYTHON_COMPAT=( python2_7 )
|
2018-10-06 05:15:55 +02: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-27 04:53:38 +01:00
|
|
|
SRC_URI="https://github.com/schollii/pypubsub/archive/v${PV}rc1.tar.gz -> ${P}.tar.gz"
|
2018-10-06 05:15:55 +02:00
|
|
|
|
|
|
|
LICENSE="BSD"
|
2019-03-18 16:31:10 +01:00
|
|
|
SLOT="3"
|
2018-10-06 05:15:55 +02:00
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE="test"
|
|
|
|
|
2019-03-04 19:42:30 +01:00
|
|
|
DEPEND="test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
|
|
|
|
RDEPEND="virtual/python-pathlib[${PYTHON_USEDEP}]"
|
2018-10-06 05:15:55 +02:00
|
|
|
|
|
|
|
python_test() {
|
2019-02-26 00:54:01 +01:00
|
|
|
distutils_install_for_testing
|
|
|
|
cd "tests/suite" || die
|
|
|
|
pytest -vv || die
|
2018-10-06 05:15:55 +02:00
|
|
|
}
|
2019-03-27 04:53:38 +01:00
|
|
|
|
|
|
|
S="${WORKDIR}/${PN}-${PV}rc1"
|