# Maintainer: Butui Hu pkgname=python-nvidia-ml-py _name=nvidia-ml-py pkgver=12.535.133 pkgrel=2 pkgdesc='Python Bindings for the NVIDIA Management Library' arch=('any') url='https://pypi.org/project/nvidia-ml-py' license=('BSD-3-Clause') depends=( nvidia-utils python ) makedepends=( python-build python-installer python-setuptools python-wheel ) source=( "${_name}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz" ) sha512sums=('0526e6484deed485631e6ff75f70587fc73a58e2a0d82d3472c413a8ab984f4b6aef049dac24ebcd7adb6481f022ccbf9277e3cdbf3d2cd76539ae5aaf8a1ede') build() { cd "${srcdir}/${_name}-${pkgver}" python -m build --wheel --no-isolation } package() { cd "${srcdir}/${_name}-${pkgver}" python -m installer --destdir="${pkgdir}" dist/*.whl install -D -m644 "${srcdir}/${_name}-${pkgver}/README.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } # vim:set ts=2 sw=2 et: