Files
guru/dev-python/jpype/jpype-1.7.1.ebuild
T
David Roman 59f98117e4 */*: disable py3.12 && remove dead impls
Disable py3.12 except for packages which only had py3.12 in PYTHON_COMPAT

Signed-off-by: David Roman <stkw0@disroot.org>
Part-of: https://codeberg.org/gentoo/guru/pulls/161
2026-11-03 14:42:49 +01:00

61 lines
1.2 KiB
Bash

# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=scikit-build-core
PYTHON_COMPAT=( python3_{13..15} )
EPYTEST_PLUGINS=()
inherit java-pkg-2 distutils-r1
DESCRIPTION="Bridge to allow Python programs full access to Java class libraries"
HOMEPAGE="https://github.com/jpype-project/jpype/"
SRC_URI="
https://github.com/jpype-project/jpype/archive/refs/tags/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
dev-python/packaging[${PYTHON_USEDEP}]
>=virtual/jre-11:*
"
DEPEND=">=virtual/jdk-11:*"
BDEPEND="
${DEPEND}
>=dev-python/scikit-build-core-0.9[${PYTHON_USEDEP}]
dev-java/ant
test? (
dev-python/jedi[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
PATCHES=(
"${FILESDIR}/${P}-java-release.patch"
"${FILESDIR}/${P}-jar-location.patch"
)
python_compile() {
local DISTUTILS_ARGS=( -DBUILD_TEST_HARNESS=$(usex test ON OFF) )
distutils-r1_python_compile
}
python_test() {
cd test || die
epytest jpypetest --checkjni \
--ignore=jpypetest/test_sql_h2.py \
--ignore=jpypetest/test_sql_hsqldb.py \
--ignore=jpypetest/test_sql_sqlite.py
}