1SUMMARY="Style-preserving TOML library for Python"
2DESCRIPTION="TOML Kit is a 1.0.0-compliant TOML library.
3
4It includes a parser that preserves all comments, indentations, whitespace and internal element \
5ordering, and makes them accessible and editable via an intuitive API.
6
7You can also create new TOML documents from scratch using the provided helpers.
8
9Part of the implementation has been adapted, improved and fixed from Molten."
10HOMEPAGE="https://github.com/python-poetry/tomlkit"
11COPYRIGHT="2018 S��bastien Eustace"
12LICENSE="MIT"
13REVISION="1"
14SOURCE_URI="https://github.com/python-poetry/tomlkit/releases/download/$portVersion/tomlkit-$portVersion-py3-none-any.whl#noarchive"
15CHECKSUM_SHA256="5cd82d48a3dd89dee1f9d64420aa20ae65cfbd00668d6f094d7578a78efbb77b"
16
17ARCHITECTURES="any"
18
19PROVIDES="
20	$portName = $portVersion
21	"
22REQUIRES="
23	haiku
24	"
25
26BUILD_REQUIRES="
27	haiku_devel
28	"
29
30PYTHON_PACKAGES=(python310)
31PYTHON_VERSIONS=(3.10)
32for i in "${!PYTHON_PACKAGES[@]}"; do
33	pythonPackage=${PYTHON_PACKAGES[i]}
34	pythonVersion=${PYTHON_VERSIONS[$i]}
35
36	eval "PROVIDES_${pythonPackage}=\"
37		${portName}_$pythonPackage = $portVersion
38		\""
39	eval "REQUIRES_$pythonPackage=\"
40		haiku
41		cmd:python$pythonVersion
42		\""
43	BUILD_PREREQUIRES="$BUILD_PREREQUIRES
44		installer_$pythonPackage
45		cmd:python$pythonVersion
46		"
47done
48
49INSTALL()
50{
51	for i in "${!PYTHON_PACKAGES[@]}"; do
52		pythonVersion=${PYTHON_VERSIONS[$i]}
53
54		python=python$pythonVersion
55		$python -m installer -p $prefix $portName-$portVersion-py3-none-any.whl
56
57		packageEntries ${PYTHON_PACKAGES[i]} \
58			$prefix/lib/python*
59	done
60}
61