# Maintainer: Daniel Peukert _projectname='pysmart' _reponame='py-SMART' pkgname="python-$_projectname" pkgver='1.3.0' _commit='b9476003798faa43d8e931084b8af93fa6cbc64c' pkgrel='1' epoch='1' pkgdesc='Wrapper for smartctl (smartmontools) - FreeNAS fork' arch=('any') url="https://github.com/freenas/$_reponame" license=('LGPL-2.1-or-later') depends=('python>=3.8.0' 'python-chardet' 'python-humanfriendly' 'smartmontools') makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-setuptools-scm' 'python-wheel') checkdepends=('python-pytest') source=("$pkgname-$pkgver::git+$url#commit=$_commit?signed") sha512sums=('905c0a355245fd5c7e9dd20e264feaf86077f665780a8c6dcd49dcf35ffe8afc93a28e275dd11ea299f01bd864d0b13f3ec28b365eb74edda8e472fcd41261bd') validpgpkeys=('5F6761715FB2876BF2355A72195598EC98A1C1DF') # Rafael Leira Osuna (https://github.com/ralequi.gpg) - expired _sourcedirectory="$pkgname-$pkgver" build() { cd "$srcdir/$_sourcedirectory/" # setuptools-scm normally needs a git repo, set an explicit version instead export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver" python -m build --wheel --no-isolation } check() { cd "$srcdir/$_sourcedirectory/" pytest } package() { cd "$srcdir/$_sourcedirectory/" python -m installer --destdir="$pkgdir" 'dist/'*'.whl' }