Files
haikuports/dev-python/packaging/packaging-24.1.recipe
OscarL c88414feb1 packaging: update to version 24.1. (#10731)
- Don't use "build" to avoid circular dependencies for "build".
- License can be Apache v2 or BSD (2-clause", at user's discretion.

Helps with #10717.
2024-07-22 18:30:59 +02:00

63 lines
1.3 KiB
Bash

SUMMARY="Core utilities for Python packages"
DESCRIPTION="The 'packaging' project includes the following: \
version handling, specifiers, markers, requirements, tags, utilities."
HOMEPAGE="https://pypi.python.org/pypi/packaging"
COPYRIGHT="Donald Stufft and individual contributors"
LICENSE="BSD (2-clause)"
REVISION="1"
SOURCE_URI="https://pypi.io/packages/source/${portName:0:1}/$portName/$portName-$portVersion.tar.gz"
CHECKSUM_SHA256="026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_VERSIONS=(3.9 3.10)
for i in "${!PYTHON_VERSIONS[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
pythonPackage=python${pythonVersion//.}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
\""
eval "REQUIRES_$pythonPackage=\"
haiku
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
flit_core_$pythonPackage
installer_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
INSTALL()
{
for i in "${!PYTHON_VERSIONS[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
pythonPackage=python${pythonVersion//.}
python=python$pythonVersion
$python -m flit_core.wheel
$python -m installer --prefix=$prefix dist/*.whl
packageEntries $pythonPackage \
$prefix/lib/python*
done
}