File PKGBUILD of Package python-nest2d

pkgname=python-nest2d
_pkgname=nest2D
pkgver=0.4.5
pkgrel=1
pkgdesc='2D bin packaging tool for python'
arch=(x86_64)
url='https://github.com/markfink/nest2D'
license=('LGPL')
depends=(libnest2d pybind11)
makedepends=(boost cmake git python-build python-installer python-wheel python-setuptools)
source=(https://files.pythonhosted.org/packages/a7/8a/8b905b9b1e1612b84278768b7c6789c69617473b5cbeeaca9eb9d665fa02/nest2D-$pkgver.tar.gz)
sha256sums=('b9f9def811dcc79c3ce09d925ca13c81295805c07c3b84e14b63f75b36a0e477')


build() {
  cd ${_pkgname}-${pkgver}
  python -m build --wheel --no-isolation
}

package() {
  cd ${_pkgname}-${pkgver}
  python -m installer --destdir="$pkgdir" dist/*.whl
}
openSUSE Build Service is sponsored by