mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-12 00:23:13 -04:00
dev-python/compreffor: fix tests
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -4,29 +4,26 @@
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
MYPV="${PV/_p/.post}"
|
||||
MYP="${PN}-${MYPV}"
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_P="${PN}-${PV/_p/.post}"
|
||||
DESCRIPTION="A CFF table subroutinizer for FontTools"
|
||||
HOMEPAGE="
|
||||
https://github.com/googlefonts/compreffor
|
||||
https://pypi.org/project/compreffor/
|
||||
"
|
||||
SRC_URI="mirror://pypi/${MYP:0:1}/${PN}/${MYP}.tar.gz"
|
||||
S="${WORKDIR}/${MYP}"
|
||||
SRC_URI="mirror://pypi/${MY_P:0:1}/${PN}/${MY_P}.tar.gz"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/fonttools-4[${PYTHON_USEDEP}]
|
||||
"
|
||||
RDEPEND=">=dev-python/fonttools-4[${PYTHON_USEDEP}]"
|
||||
DEPEND=">=dev-python/cython-0.29.24[${PYTHON_USEDEP}]"
|
||||
BDEPEND="
|
||||
app-arch/unzip
|
||||
>=dev-python/cython-0.29.24[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools_scm[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
@@ -34,12 +31,7 @@ PATCHES=( "${FILESDIR}/${P}-remove-unwanted-dependencies.patch" )
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_compile() {
|
||||
distutils-r1_python_compile
|
||||
esetup.py build_ext --inplace
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cd "${S}/src/python" || die
|
||||
PYTHONPATH=".:${PYTHONPATH}" epytest compreffor/test
|
||||
cd "${T}" || die
|
||||
epytest --pyargs compreffor
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user