commit: 27fbb3a4337a6c38c24a5e420f240c48b646071d
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri May 24 09:55:51 2024 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri May 24 11:09:19 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27fbb3a4
dev-python/pypugjs: Fix more pyproject.toml issues
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
.../{pypugjs-5.10.1.ebuild => pypugjs-5.10.1-r1.ebuild} | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/dev-python/pypugjs/pypugjs-5.10.1.ebuild
b/dev-python/pypugjs/pypugjs-5.10.1-r1.ebuild
similarity index 76%
rename from dev-python/pypugjs/pypugjs-5.10.1.ebuild
rename to dev-python/pypugjs/pypugjs-5.10.1-r1.ebuild
index db189115ef63..8d98fdb25de6 100644
--- a/dev-python/pypugjs/pypugjs-5.10.1.ebuild
+++ b/dev-python/pypugjs/pypugjs-5.10.1-r1.ebuild
@@ -9,7 +9,10 @@ PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1 optfeature
DESCRIPTION="Pug (Jade) syntax adapter for Django, Jinja2 and Mako templates"
-HOMEPAGE="https://github.com/kakulukia/pypugjs"
+HOMEPAGE="
+ https://github.com/kakulukia/pypugjs/
+ https://pypi.org/project/pypugjs/
+"
SRC_URI="
https://github.com/kakulukia/pypugjs/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz
@@ -38,6 +41,12 @@ distutils_enable_tests pytest
src_prepare() {
# poetry nonsense
sed -i -e 's:\^:>=:' pyproject.toml || die
+ # upstream hardcodes wrong version, and puts test dependencies
+ # in regular depenendencies, so discard the whole thing
+ sed -e "/version/s:5\.9\.12:${PV}:" \
+ -e
's:tool\.poetry\.dependencies:tool.poetry.group.ignored.dependencies:' \
+ -i pyproject.toml || die
+
distutils-r1_src_prepare
}