# Copyright 2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=poetry PYTHON_COMPAT=( python3_1{0,1,2} ) inherit distutils-r1 pypi DESCRIPTION="Minimal declarative cli tool." HOMEPAGE="https://pypi.org/project/decli/" SRC_URI="https://github.com/Woile/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" distutils_enable_tests pytest python_prepare_all() { # Add backend specification sed -i '1 i[build-system]\nrequires = ["poetry>=0.12"]\nbuild-backend = "poetry.core.masonry.api"' \ pyproject.toml || die "sed failed for pyproject.toml" distutils-r1_python_prepare_all }