SUMMARY="Simple DNS resolver for asyncio" DESCRIPTION="aiodns provides a simple way for doing asynchronous DNS \ resolutions with a synchronous looking interface by using pycares" HOMEPAGE="https://pypi.python.org/pypi/aiodns" COPYRIGHT="2014 Saúl Ibarra Corretgé" LICENSE="MIT" REVISION="1" SOURCE_URI="https://files.pythonhosted.org/packages/source/${portName:0:1}/$portName/$portName-$portVersion.tar.gz" CHECKSUM_SHA256="11264edbab51896ecf546c18eb0dd56dff0428c6aa6d2cd87e643e07300eb310" ARCHITECTURES="any" PROVIDES=" $portName = $portVersion " REQUIRES=" haiku " BUILD_REQUIRES=" haiku_devel " PYTHON_VERSIONS=(3.10) for pythonVersion in ${PYTHON_VERSIONS[@]}; do pythonPackage=python${pythonVersion//.} eval "PROVIDES_${pythonPackage}=\" ${portName}_$pythonPackage = $portVersion \"" eval "REQUIRES_$pythonPackage=\" haiku pycares_$pythonPackage # >=4.9.0 cmd:python$pythonVersion \"" BUILD_REQUIRES+=" build_$pythonPackage installer_$pythonPackage setuptools_$pythonPackage wheel_$pythonPackage " BUILD_PREREQUIRES+=" cmd:python$pythonVersion " done BUILD() { # This is an "any" package, "building" it will create a # "$portBaseName-$portVersion-py3-none-any.whl" file that can be installed # on multiple Python versions, so we only need to build once. python=python${PYTHON_VERSIONS[0]} $python -m build --wheel --skip-dependency-check --no-isolation } INSTALL() { for pythonVersion in ${PYTHON_VERSIONS[@]}; do pythonPackage=python${pythonVersion//.} python=python$pythonVersion # wheel filename has the pattern: $portBaseName-$portVersion-*-none-any.whl # with the asterisk being: "py2-py3" or "py3". $python -m installer --p $prefix dist/$portName-$portVersion-*-none-any.whl packageEntries $pythonPackage \ $prefix/lib/python* done }