# 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 git-r3 optfeature DESCRIPTION="The Python interface to the Valkey key-value store" HOMEPAGE="https://github.com/valkey-io/valkey-py" EGIT_REPO_URI="https://github.com/valkey-io/${PN}.git" LICENSE="MIT" SLOT="0" RESTRICT="test" # needs valkey BDEPEND="test? ( dev-python/cryptography[${PYTHON_USEDEP}] dev-python/libvalkey[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] )" distutils_enable_tests pytest pkg_postinst() { optfeature "integration with libvalkey" dev-python/libvalkey optfeature "integration with ocsp" dev-python/cryptography dev-python/pyopenssl dev-python/requests }