Files
gentoo/dev-python/pychm/pychm-0.8.6.ebuild
Zamarin Arthur a74bd130ce dev-python/pychm: bump to python 3.10
passes tests

Signed-off-by: Zamarin Arthur <arthurzam@gmail.com>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2021-05-18 11:23:47 +02:00

30 lines
676 B
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..10} )
inherit distutils-r1
DESCRIPTION="Python bindings for the chmlib library"
HOMEPAGE="https://github.com/dottedmag/pychm"
SRC_URI="https://github.com/dottedmag/pychm/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="amd64 ~arm ~ppc x86"
RDEPEND="dev-libs/chmlib"
DEPEND="${RDEPEND}"
distutils_enable_tests pytest
src_test() {
# need to avoid relative import of 'chm' directory but tests rely
# on locating files relatively via tests/...
mv tests .. || die
cd .. || die
distutils-r1_src_test
}