Files
haikuports/dev-python/pytest_mock/pytest_mock-3.10.0.recipe
Schrijvers Luc 480e45cd2f sphinx(python), add new/updated dependency python recipes (#8775)
* sphinx(python), add new/updated dependency python recipes

* Update dev-python/babel/babel-2.12.1.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

* Update dev-python/babel/babel-2.12.1.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

* Update dev-python/babel/babel-2.12.1.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

* Update dev-python/pytest_mock/pytest_mock-3.10.0.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

* Update dev-python/pytest_mock/pytest_mock-3.10.0.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

* Update dev-python/sphinxcontrib-jquery/sphinxcontrib_jquery-4.1.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

* Update dev-python/sphinx/sphinx-7.0.1.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

* Update dev-python/sphinx/sphinx-7.0.1.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

* Update dev-python/sphinx/sphinx-7.0.1.recipe

Co-authored-by: OscarL <oscar.lesta@gmail.com>

---------

Co-authored-by: OscarL <oscar.lesta@gmail.com>
2023-06-03 21:48:24 +02:00

67 lines
1.6 KiB
Bash

SUMMARY="A thin-wrapper around the mock package for py.test"
DESCRIPTION="This provides a thin-wrapper around the patching API provided by \
the mock package for py.test."
HOMEPAGE="https://pytest.org"
COPYRIGHT="2016 Bruno Oliveira"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://pypi.io/packages/source/p/pytest-mock/pytest-mock-$portVersion.tar.gz"
CHECKSUM_SHA256="fbbdb085ef7c252a326fd8cdcac0aa3b1333d8811f131bdcc701002e1be7ed4f"
SOURCE_DIR="pytest-mock-$portVersion"
ARCHITECTURES="any"
PROVIDES="
pytest_mock = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"
${portName}_$pythonPackage = $portVersion\
\""
eval "REQUIRES_$pythonPackage=\"
haiku
cmd:python$pythonVersion
pytest_$pythonPackage
\""
BUILD_REQUIRES+="
setuptools_scm_$pythonPackage
"
BUILD_PREREQUIRES+="
packaging_$pythonPackage
pip_$pythonPackage
cmd:python$pythonVersion
"
done
INSTALL()
{
export SETUPTOOLS_SCM_PRETEND_VERSION=$portVersion
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
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
}