SUMMARY="Collection of ASN.1 modules in form of pyasn1 classes" DESCRIPTION="A collection of ASN.1 modules expressed in form of pyasn1 \ classes. Includes protocols PDUs definition (SNMP, LDAP etc.) and various \ data structures (X.509, PKCS etc.)." HOMEPAGE="https://pypi.org/project/pyasn1-modules/" COPYRIGHT="2005-2020 Ilya Etingof " LICENSE="BSD (2-clause)" REVISION="1" SOURCE_URI="https://files.pythonhosted.org/packages/source/${portName:0:1}/$portName/$portName-$portVersion.tar.gz" CHECKSUM_SHA256="677091de870a80aae844b1ca6134f54652fa2c8c5a52aa396440ac3106e941e6" SOURCE_DIR="pyasn1_modules-$portVersion" 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 pyasn1_$pythonPackage # pyasn1>=0.6.1,<0.7.0 (requirements.txt says: >=0.4.7,<0.7.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 }