description="Extensible, standards compliant build backend used by Hatch"
url="https://github.com/pypa/hatch/"

packager="Great-OS Team"
maintainer="Great-OS Team"

name=python-hatchling
_name=hatchling
version=1.28.0
release=1

source=(https://github.com/pypa/hatch/archive/refs/tags/${_name}-v${version}.tar.gz)

build() {
  cd hatch-hatchling-v${version}/backend

  pip3 install --upgrade pip
  pip3 install build trove-classifiers pathspec pluggy wheel installer

  python3 -m build --wheel --no-isolation
  python3 -m installer --destdir="$PKG" dist/*.whl
}
