gentoo/dev-python/sip/sip-6.14.0.ebuild
Ionen Wolkens 22bc2aebe9
dev-python/sip: add 6.14.0
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2025-10-23 14:05:21 -04:00

49 lines
1.3 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..14} )
inherit distutils-r1
DESCRIPTION="Python bindings generator for C/C++ libraries"
HOMEPAGE="https://github.com/Python-SIP/sip/"
SRC_URI="
https://github.com/Python-SIP/sip/archive/refs/tags/${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="BSD-2 BSD"
SLOT="5"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
RDEPEND="
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]
"
BDEPEND="
>=dev-python/setuptools-scm-8[${PYTHON_USEDEP}]
"
distutils_enable_sphinx docs \
dev-python/myst-parser \
dev-python/sphinx-rtd-theme
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
python_test() {
# some tests currently fails to find test/utils without this
# TODO: try again without, used to be unneeded but not been looked into
local -x PYTHONPATH=${S}/test:${PYTHONPATH}
local EPYTEST_DESELECT=(
# logic for this test seems(?) inverted (XFAIL), skip for now
# given it's new and is only to emit a deprecation warning
test/gen_classes/test_gen_classes.py::GenerateClassesTestCase::test_Nonpublic_Superclasses
)
distutils-r1_python_test
}