Files
haikuports/dev-python/pluggy/pluggy-1.0.0.recipe
2025-07-24 01:02:28 -03:00

66 lines
1.4 KiB
Bash

SUMMARY="A Python framework"
DESCRIPTION="This is the core framework used by the pytest, tox, and devpi projects."
HOMEPAGE="https://github.com/pytest-dev/pluggy"
COPYRIGHT="2004-2020 Holger Krekel and others."
LICENSE="MIT"
REVISION="3"
SOURCE_URI="https://files.pythonhosted.org/packages/source/p/pluggy/pluggy-$portVersion.tar.gz"
CHECKSUM_SHA256="4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159"
ARCHITECTURES="any"
PROVIDES="
pluggy=$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
setuptools_scm_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
INSTALL()
{
export SETUPTOOLS_SCM_PRETEND_VERSION=$portVersion
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 egg_info install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}