Files
ports/main/python3-yaml/spkgbuild
2023-08-30 18:05:41 +00:00

17 lines
466 B
Plaintext

# description : Python bindings for YAML, using fast libYAML library
# depends : python3 yaml cython3
name=python3-yaml
version=6.0.1
release=1
source="$name-$version.tar.gz::https://pypi.python.org/packages/source/P/PyYAML/PyYAML-$version.tar.gz
cython3.patch"
build() {
cd PyYAML-$version
patch -Np1 -i $SRC/cython3.patch
python3 -m build --wheel --skip-dependency-check --no-isolation
python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
}