Files
gentoo/dev-python/pychm/pychm-0.8.6-r1.ebuild
T
2023-01-14 13:51:19 +01:00

30 lines
707 B
Bash

# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
DISTUTILS_USE_PEP517=setuptools
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
}