dev-python/markupsafe: Sync with Gentoo

It's from Gentoo commit 553571c0aa80a227e89ae047f0bbe6783d7180d8.

Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
Flatcar Buildbot 2025-10-13 07:07:28 +00:00 committed by Krzesimir Nowak
parent 877ac08e17
commit ed85ececbc
2 changed files with 40 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST markupsafe-3.0.2.tar.gz 20537 BLAKE2B ffccc47eb4b8048aee98b61a3b9dee28eb31323563b943ad96293541467ddb3d0d63906fbbc876ee30947a10afcb580456a10d502874601ba7c4e4d63594f114 SHA512 26946b928b001933f08a5dd90c5fe424a1d9e2bccfbf7194955d031a3df54a03eb48e4e47ea9564a25da33efeb62a043a53008f551fa1e8d71321bc276e19ce2
DIST markupsafe-3.0.3.tar.gz 80313 BLAKE2B b2ccf12452ca34e301378feda975fa2f1e256ca8a6f59a0224dc7c30c779e52216721bd9386af4d7e4ee4a5a8fcd9e03dbb5ddf24a777ddeff1c28aff650ba77 SHA512 8c4ed04b467244f6bf99cd2a60ed922bc0569581f00cc5a13d9edcd0a4bc8b97c404edc4576f6146c7aa543bbd37cf52e5312d3bdd27758264d8751fdc7a646c

View File

@ -0,0 +1,39 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYPI_PN="MarkupSafe"
PYTHON_COMPAT=( python3_{11..14} python3_{13,14}t pypy3_11 )
inherit distutils-r1 pypi
DESCRIPTION="Implements a XML/HTML/XHTML Markup safe string for Python"
HOMEPAGE="
https://palletsprojects.com/p/markupsafe/
https://github.com/pallets/markupsafe/
https://pypi.org/project/MarkupSafe/
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
IUSE="+native-extensions"
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
src_prepare() {
distutils-r1_src_prepare
if ! use native-extensions; then
sed -i -e '/run_setup/s:True:False:' setup.py || die
fi
}
python_compile() {
local -x CIBUILDWHEEL=1
distutils-r1_python_compile
}