sgmllib3k: drop Python 3.9 support.

Only on-tree user (feedparser) already only targets 3.10.
This commit is contained in:
Oscar Lesta
2025-09-20 00:27:40 -03:00
committed by OscarL
parent 976a4b52da
commit 2293dddb8c

View File

@@ -7,7 +7,7 @@ Only here because feedparser (and thus Calibre) still require it."
HOMEPAGE="https://pypi.org/project/sgmllib3k/"
COPYRIGHT="2010 Hardcoded Software"
LICENSE="Python"
REVISION="1"
REVISION="2"
SOURCE_URI="https://pypi.io/packages/source/s/$portName/$portName-$portVersion.tar.gz"
CHECKSUM_SHA256="7868fb1c8bfa764c1ac563d3cf369c381d1325d36124933a726f29fcdaa812e9"
@@ -24,13 +24,12 @@ BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
PYTHON_VERSIONS=(3.10)
eval "PROVIDES_${pythonPackage}=\"
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
\""
eval "REQUIRES_$pythonPackage=\"
@@ -47,9 +46,8 @@ done
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/