blob: 66da1c04858e417e6376a61b7f1aa755c692ad5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Daniel Peukert <daniel@peukert.cc>
_projectname='pysmart'
_reponame='py-SMART'
pkgname="python-$_projectname"
pkgver='1.3.0'
_commit='b9476003798faa43d8e931084b8af93fa6cbc64c'
pkgrel='2'
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 <rafael.leira@naudit.es> (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'
}
|