importlib_metadata: update to version 6.8.0 (#9331)

This commit is contained in:
OscarL
2023-09-02 03:05:30 -03:00
committed by GitHub
parent 3775520412
commit 3110a975a7
2 changed files with 65 additions and 64 deletions

View File

@@ -0,0 +1,65 @@
SUMMARY="A library to access the metadata for a Python package"
DESCRIPTION="This project primarily supports third-party packages installed \
by PyPA tools (or other conforming packages). It does not support:
- Packages in the stdlib.
- Packages installed without metadata."
HOMEPAGE="https://pypi.python.org/pypi/importlib-metadata"
COPYRIGHT="2017-2023 Jason R. Coombs, Barry Warsaw"
LICENSE="Apache v2"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/i/$portName/$portName-$portVersion.tar.gz"
CHECKSUM_SHA256=""
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
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]}
eval "PROVIDES_${pythonPackage}=\"
${portName}_$pythonPackage = $portVersion
\""
eval "REQUIRES_$pythonPackage=\"
haiku
zipp_$pythonPackage
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
build_$pythonPackage
installer_$pythonPackage
setuptools_$pythonPackage
setuptools_scm_$pythonPackage
wheel_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
python=python${PYTHON_VERSIONS[$i]}
$python -m build --wheel --skip-dependency-check --no-isolation
$python -m installer -p $prefix dist/*.whl
packageEntries $pythonPackage \
$prefix/lib/python*
done
}