Files
haikuports/dev-python/certifi/certifi-2023.7.22.recipe
Oscar Lesta 7695e7953f certifi: drop Python 3.9 support.
Only user on-tree (youcompleteme) already is 3.10 only.
2025-09-19 22:53:14 -03:00

64 lines
1.5 KiB
Bash

SUMMARY="Python package for providing Mozilla's CA Bundle"
DESCRIPTION="Certifi is a carefully curated collection of Root Certificates \
for validating the trustworthiness of SSL certificates while verifying the \
identity of TLS hosts. It has been extracted from the Requests project."
HOMEPAGE="https://pypi.org/project/certifi/"
COPYRIGHT="2011-2023 Kenneth Reitz"
LICENSE="MPL v2.0"
REVISION="2"
SOURCE_URI="https://pypi.python.org/packages/source/c/certifi/certifi-$portVersion.tar.gz"
CHECKSUM_SHA256="539cc1d13202e33ca466e88b2807e29f4c13049d6d87031a3c110744495cb082"
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
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
setuptools_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
INSTALL()
{
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
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
}