# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{10..15} ) inherit distutils-r1 DESCRIPTION="A Python publish-subcribe library" HOMEPAGE="https://github.com/schollii/pypubsub/" SRC_URI=" https://github.com/schollii/pypubsub/archive/v${PV}.tar.gz -> ${P}.tar.gz " LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="test" BDEPEND=" dev-python/setuptools-scm[${PYTHON_USEDEP}] test? ( dev-python/pytest[${PYTHON_USEDEP}] ) " RESTRICT="!test? ( test )" PATCHES=( "${FILESDIR}/${P}-python3.14-setuptools.patch" ) src_compile() { export SETUPTOOLS_SCM_PRETEND_VERSION="${PV}" export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYPUBSUB="${PV}" distutils-r1_src_compile } python_test() { distutils_install_for_testing cd "tests/suite" || die pytest -vv || die }