src_prepare-overlay/dev-python/aspectlib/aspectlib-1.5.2-r1.ebuild
Alfred Wingate 71f1854c95
dev-python/aspectlib: bump python_compat and tidy up
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2022-10-07 23:08:21 +03:00

38 lines
884 B
Bash

# Copyright 2021-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517="setuptools"
PYTHON_COMPAT=( python3_{8..11} )
inherit distutils-r1
DESCRIPTION="An aspect-oriented programming, monkey-patch and decorators library."
HOMEPAGE="https://github.com/ionelmc/python-aspectlib"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="!test? ( test )"
RDEPEND="dev-python/fields[${PYTHON_USEDEP}]"
DEPEND="
doc? (
dev-python/sphinx-py3doc-enhanced-theme[${PYTHON_USEDEP}]
)
test? (
${RDEPEND}
dev-python/process-tests[${PYTHON_USEDEP}]
dev-python/tornado[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
distutils_enable_sphinx docs
PATCHES=(
"${FILESDIR}/Fix-tests-for-python3_10-and-above.patch"
"${FILESDIR}/Remove-tornado-6-test-constraint.patch"
)