# Compiling Time: 0 SBU
# Maintainer: James Buren <ryuo@frugalware.org>

pkgname=apipkg
pkgver=3.0.2
pkgrel=1
pkgdesc="Namespace control and lazy-import mechanism."
depends=('python3>=3.10')
makedepends=('python3-build' 'python3-installer' 'python3-hatchling' \
	'python3-hatch-vcs' 'python3-setuptools_scm')
groups=('devel-extra')
archs=('x86_64')
_F_python_version=python3
Finclude pypi
sha1sums=('f201ff1f60af22987c13f0829ad3d8f11f859b40')

build() {
	Fcd
	Fexec python3 -m build --wheel --no-isolation || Fdie
	Fexec python3 -m installer --destdir="$Fdestdir" dist/*.whl || Fdie
}

# optimization OK
