SUMMARY="A fast and thorough lazy object proxy for Python" DESCRIPTION="lazy-object-proxy is based on the ObjectProxy from the wrapt \ Python module with one big change: it calls a function the first time the \ proxy object is used, while wrapt.ObjectProxy just forwards the method calls \ to the target object" HOMEPAGE="https://github.com/ionelmc/python-lazy-object-proxy" COPYRIGHT="2014-2019, Ionel Cristian Mărieș" LICENSE="BSD (2-clause)" REVISION="5" SOURCE_URI="https://github.com/ionelmc/python-lazy-object-proxy/archive/v$portVersion.tar.gz" CHECKSUM_SHA256="b28708f92930b4e2c0ab39def12ebc6be466db5e91fad88bfc7ebf9aa9c9de16" SOURCE_DIR="python-lazy-object-proxy-$portVersion" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" PROVIDES=" $portName = $portVersion " REQUIRES=" haiku$secondaryArchSuffix " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel " PYTHON_VERSIONS=(3.10) for pythonVersion in ${PYTHON_VERSIONS[@]}; do pythonPackage=python${pythonVersion//.} eval "PROVIDES_$pythonPackage=\" ${portName}_$pythonPackage = $portVersion \"" if [ "$targetArchitecture" = x86_gcc2 ]; then eval "PROVIDES_$pythonPackage+=\" lazy_object_proxy_$pythonPackage = $portVersion \"" fi eval "REQUIRES_$pythonPackage=\" haiku cmd:python$pythonVersion\ \"" BUILD_REQUIRES+=" build_$pythonPackage installer_$pythonPackage setuptools_scm_$pythonPackage wheel_$pythonPackage " BUILD_PREREQUIRES+=" cmd:gcc$secondaryArchSuffix cmd:python$pythonVersion " done INSTALL() { for pythonVersion in ${PYTHON_VERSIONS[@]}; do pythonPackage=python${pythonVersion//.} python=python$pythonVersion rm -rf dist $python -m build --wheel --skip-dependency-check --no-isolation $python -m installer --p $prefix dist/*.whl packageEntries $pythonPackage \ "$prefix"/lib/python* done }