makedepends=(yaml cython python-build python-packaging python-setuptools python-wheel)

description="Python bindings for YAML, using fast libYAML library"
url="http://pyyaml.org/wiki/PyYAML"

packager="Great-OS Team"
maintainer="Great-OS Team"
 
name=python-yaml
_name=PyYAML
version=6.0.3
release=1

PKGMK_KEEP_SOURCES="no"
source=(https://github.com/yaml/pyyaml/archive/${version}.tar.gz)

prepare() {
  pip3 install installer pyproject_hooks --no-build-isolation --no-deps
}

build() {
  cd "pyyaml-$version"
  echo -e "Building python3"

  python3 -m build --wheel --no-isolation --config-setting=--with-libyaml
}

package() {
  cd "pyyaml-$version"
  python3 -m installer --destdir="$PKG" dist/*.whl
}
