SUMMARY="Better dates & times for Python" DESCRIPTION="Arrow is a Python library that offers a sensible and human-friendly approach to \ creating, manipulating, formatting and converting dates, times and timestamps. It implements and \ updates the datetime type, plugging gaps in functionality and providing an intelligent module API \ that supports many common creation scenarios. Simply put, it helps you work with dates and times \ with fewer imports and a lot less code. Arrow is named after the arrow of time and is heavily inspired by moment.js and requests." HOMEPAGE="https://github.com/arrow-py/arrow/" COPYRIGHT="2023 Chris Smith" LICENSE="Apache v2" REVISION="1" SOURCE_URI="https://github.com/arrow-py/arrow/archive/$portVersion.tar.gz" CHECKSUM_SHA256="dc77c3f46354a2d7fd840422befdacff1e60ed74538c6eed4796e6e58883983c" 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 dateutil_$pythonPackage typing_extensions_$pythonPackage cmd:python$pythonVersion \"" BUILD_REQUIRES="$BUILD_REQUIRES setuptools_$pythonPackage " BUILD_PREREQUIRES="$BUILD_PREREQUIRES cmd:python$pythonVersion " done INSTALL() { for i in "${!PYTHON_PACKAGES[@]}"; do pythonPackage=${PYTHON_PACKAGES[i]} pythonVersion=${PYTHON_VERSIONS[$i]} python=python$pythonVersion installLocation=$prefix/lib/$python/vendor-packages/ export PYTHONPATH=$installLocation:$PYTHONPATH mkdir -p $installLocation rm -rf build $python setup.py build install \ --root=/ --prefix=$prefix packageEntries $pythonPackage \ $prefix/lib/python* done }