pkgname=python-setuptools-scm pkgver=8.1.0 pkgrel=1 pkgdesc="Handles managing your python package versions in scm metadata" arch=('x86_64') url="https://github.com/pypa/setuptools-scm" license=('MIT') depends=('python-packaging' 'python-setuptools') makedepends=('python-build' 'python-installer' 'python-wheel') source=(https://github.com/pypa/setuptools-scm/archive/v${pkgver}/${pkgname#*-}-${pkgver}.tar.gz) sha256sums=(4407d237183e668574bc893fdf739f8f4cde5f61950b99ead4f370f13224ea2b) build() { cd ${pkgname#*-}-${pkgver} python3 -m build --wheel --skip-dependency-check --no-isolation } package() { cd ${pkgname#*-}-${pkgver} python3 -m installer --destdir=${pkgdir} dist/*.whl }