1SUMMARY="Low-level replacement for pep517"
2DESCRIPTION="This is a low-level library for calling build-backends in 'pyproject.toml'-based \
3project. It provides the basic functionality to help write tooling that generates distribution files \
4from Python projects.
5
6If you want a tool that builds Python packages, you���ll want to use https://github.com/pypa/build \
7instead. This is an underlying piece for pip, build and other ���build frontends��� use to call \
8���build backends��� within them.
9
10Note: The 'pep517' project has been replaced by this project (low level) and the 'build' project \
11(high level)."
12HOMEPAGE="https://pypi.org/project/pyproject_hooks/"
13COPYRIGHT="2017 Thomas Kluyver"
14LICENSE="MIT"
15REVISION="1"
16SOURCE_URI="https://files.pythonhosted.org/packages/source/p/pyproject-hooks/pyproject_hooks-$portVersion.tar.gz"
17CHECKSUM_SHA256="4b37730834edbd6bd37f26ece6b44802fb1c1ee2ece0e54ddff8bfc06db86965"
18SOURCE_DIR="pyproject_hooks-$portVersion"
19
20ARCHITECTURES="any"
21
22PROVIDES="
23	$portName = $portVersion
24	"
25REQUIRES="
26	haiku
27	"
28
29BUILD_REQUIRES="
30	haiku_devel
31	"
32
33PYTHON_VERSIONS=(3.9 3.10)
34
35for i in "${!PYTHON_VERSIONS[@]}"; do
36	pythonVersion=${PYTHON_VERSIONS[$i]}
37	pythonPackage=python${pythonVersion//.}
38
39	eval "PROVIDES_$pythonPackage=\"
40		${portName}_$pythonPackage = $portVersion
41		\""
42
43	eval "REQUIRES_$pythonPackage=\"
44		haiku
45		cmd:python$pythonVersion
46		\""
47	BUILD_REQUIRES+="
48		flit_core_$pythonPackage
49		installer_$pythonPackage
50		"
51	BUILD_PREREQUIRES+="
52		cmd:python$pythonVersion
53		"
54	TEST_REQUIRES+="
55		tomli_$pythonPackage	# only needed for Python < 3.11
56		"
57done
58
59
60INSTALL()
61{
62	for i in "${!PYTHON_VERSIONS[@]}"; do
63		pythonVersion=${PYTHON_VERSIONS[$i]}
64		pythonPackage=python${pythonVersion//.}
65
66		python=python$pythonVersion
67
68		rm -rf dist
69
70		$python -m flit_core.wheel
71		$python -m installer -p $prefix dist/*.whl
72
73		packageEntries $pythonPackage \
74			$prefix/lib/python*
75	done
76}
77