2023-01-15 18:24:23 +03:00
|
|
|
# Copyright 1999-2023 Gentoo Authors
|
2022-11-12 10:52:17 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=8
|
|
|
|
|
2023-06-01 21:11:30 +03:00
|
|
|
DISTUTILS_EXT=1
|
2022-11-12 10:52:17 +03:00
|
|
|
DISTUTILS_USE_PEP517=setuptools
|
2023-06-01 21:11:30 +03:00
|
|
|
PYTHON_COMPAT=( python3_{10..12} )
|
|
|
|
|
2022-11-12 10:52:17 +03:00
|
|
|
inherit distutils-r1
|
|
|
|
|
|
|
|
DESCRIPTION="Python bindings for the chmlib library"
|
2023-06-01 21:11:30 +03:00
|
|
|
HOMEPAGE="
|
|
|
|
https://github.com/dottedmag/pychm/
|
|
|
|
https://pypi.org/project/pychm/
|
|
|
|
"
|
|
|
|
SRC_URI="
|
|
|
|
https://github.com/dottedmag/pychm/archive/v${PV}.tar.gz
|
|
|
|
-> ${P}.gh.tar.gz
|
|
|
|
"
|
2022-11-12 10:52:17 +03:00
|
|
|
|
|
|
|
LICENSE="GPL-2+"
|
|
|
|
SLOT="0"
|
2023-06-26 11:56:30 +03:00
|
|
|
KEYWORDS="amd64 ~arm ~arm64 ~ppc x86"
|
2022-11-12 10:52:17 +03:00
|
|
|
|
2023-06-01 21:11:30 +03:00
|
|
|
DEPEND="
|
|
|
|
dev-libs/chmlib
|
|
|
|
"
|
|
|
|
RDEPEND="
|
|
|
|
${DEPEND}
|
|
|
|
"
|
2022-11-12 10:52:17 +03:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|