Install this version:
emerge -a =dev-python/ontquery-0.2.11
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/ontquery-0.2.11
Or alternatively:
emerge --autounmask-write -a =dev-python/ontquery-0.2.11
# 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_{10..13} pypy3 pypy3_11 )
inherit distutils-r1
if [[ ${PV} == "9999" ]]; then
EGIT_REPO_URI="https://github.com/tgbugs/${PN}.git"
inherit git-r3
KEYWORDS=""
else
inherit pypi
KEYWORDS="~amd64 ~x86"
fi
DESCRIPTION="a framework querying ontology terms"
HOMEPAGE="https://github.com/tgbugs/ontquery"
LICENSE="MIT"
SLOT="0"
IUSE="dev services test"
RESTRICT="!test? ( test )"
SVCDEPEND="
>=dev-python/orthauth-0.0.14[yaml,${PYTHON_USEDEP}]
>=dev-python/rdflib-6.0.0[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
"
RDEPEND="
dev? (
dev-python/pytest-cov[${PYTHON_USEDEP}]
dev-python/wheel[${PYTHON_USEDEP}]
)
services? (
${SVCDEPEND}
)
test? (
dev-python/pytest[${PYTHON_USEDEP}]
${SVCDEPEND}
)
"
PDEPEND="
dev? (
>=dev-python/pyontutils-0.1.5[${PYTHON_USEDEP}]
)
services? (
>=dev-python/pyontutils-0.1.27[${PYTHON_USEDEP}]
)
test? (
>=dev-python/pyontutils-0.1.27[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
if [[ ${PV} == "9999" ]]; then
BDEPEND="
dev-python/pyontutils[${PYTHON_USEDEP}]"
src_prepare () {
# replace package version to keep python quiet
sed -i "s/__version__.\+$/__version__ = '9999.0.0+$(git rev-parse --short HEAD)'/" ${PN}/__init__.py
default
}
fi
python_test() {
epytest || die "Tests fail with ${EPYTHON}"
}
python_install_all() {
local DOCS=( README* docs/* )
distutils-r1_python_install_all
}
Manage flags for this package:
euse -i <flag> -p dev-python/ontquery |
euse -E <flag> -p dev-python/ontquery |
euse -D <flag> -p dev-python/ontquery
dev? ( dev-python/pytest-cov[] dev-python/wheel[] ) services? ( >=dev-python/orthauth-0.0.14[yaml,] >=dev-python/rdflib-6.0.0[] dev-python/requests[] ) test? ( dev-python/pytest[] >=dev-python/orthauth-0.0.14[yaml,] >=dev-python/rdflib-6.0.0[] dev-python/requests[] )
dev-python/pyontutils[]