SUMMARY="Test vectors for the cryptography package" DESCRIPTION="cryptography-vectors is a special Python module which is actually \ just a collection of data files. Its only purpose is to provide packagers the \ data files required to test the \"cryptography\" Python module. \ Normal users will therefore never need to install this one." HOMEPAGE="https://pypi.org/project/cryptography-vectors/ https://github.com/pyca/cryptography" COPYRIGHT="2013-2019 The cryptography developers" LICENSE="Apache v2 BSD (3-clause)" REVISION="1" SOURCE_URI="https://files.pythonhosted.org/packages/d1/aa/c97197becda8c320744d76e5882b2ca54cfebc0388bb225c233555133b8d/cryptography_vectors-$portVersion.tar.gz" CHECKSUM_SHA256="f12dfb9bd669a68004074cb5b26df6e93ed1a95ebd1a999dff0a840212ff68bc" ARCHITECTURES="any" PROVIDES=" cryptography_vectors = $portVersion " REQUIRES=" haiku " BUILD_REQUIRES=" haiku_devel " PYTHON_PACKAGES=(python python36 python3) PYTHON_VERSIONS=(2.7 3.6 3.7) for i in "${!PYTHON_PACKAGES[@]}"; do pythonPackage=${PYTHON_PACKAGES[i]} pythonVersion=${PYTHON_VERSIONS[$i]} eval "PROVIDES_${pythonPackage}=\"\ ${portName}_$pythonPackage = $portVersion\ \"; \ REQUIRES_$pythonPackage=\"\ haiku\n\ cmd:python$pythonVersion\ \"" BUILD_REQUIRES="$BUILD_REQUIRES setuptools_$pythonPackage" BUILD_PREREQUIRES="$BUILD_PREREQUIRES cmd:python$pythonVersion" done BUILD() { for i in "${!PYTHON_PACKAGES[@]}"; do pythonPackage=${PYTHON_PACKAGES[i]} pythonVersion=${PYTHON_VERSIONS[$i]} rm -rf "$sourceDir"-$pythonPackage cp -a "$sourceDir" "$sourceDir"-$pythonPackage cd "$sourceDir"-$pythonPackage python=python$pythonVersion $python setup.py build done } INSTALL() { myLicensesDir=$dataDir/licenses/packages/c/cryptography_vectors for i in "${!PYTHON_PACKAGES[@]}"; do pythonPackage=${PYTHON_PACKAGES[i]} pythonVersion=${PYTHON_VERSIONS[$i]} cd "$sourceDir"-$pythonPackage python=python$pythonVersion installLocation=$prefix/lib/$python/vendor-packages/ export PYTHONPATH="$installLocation" mkdir -p "$installLocation" $python setup.py install \ --root=/ --prefix="$prefix" install -m 755 -d "$myLicensesDir" install -m 644 -t "$myLicensesDir" LICENSE* rm "$myLicensesDir"/LICENSE.APACHE ln -s "`finddir B_SYSTEM_DATA_DIRECTORY`/licenses/Apache v2" \ "$myLicensesDir"/LICENSE.APACHE packageEntries $pythonPackage \ "$dataDir" \ "$prefix"/lib/$python done } TEST() { for i in "${!PYTHON_PACKAGES[@]}"; do pythonPackage=${PYTHON_PACKAGES[i]} pythonVersion=${PYTHON_VERSIONS[$i]} cd "$sourceDir"-$pythonPackage python=python$pythonVersion $python setup.py test done }