blob: 72ce34c7b7415a5cdf4e1b6e2f4cce5d332392c8 (
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
|
# Maintainer: Ben Copeland <ben@copeland.me.uk>
pkgname=tuxsuite
pkgver=1.42.2
pkgrel=1
pkgdesc="A command-line client for TuxSuite services"
arch=('any')
url="https://docs.tuxsuite.com/"
license=('Apache')
depends=('python' 'python-pip' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel' 'python-dkim' 'b4' 'python-voluptuous' 'python-flask' 'python-flask-restful')
makedepends=('python-setuptools' 'python-build')
source=("https://files.pythonhosted.org/packages/source/t/tuxsuite/tuxsuite-$pkgver.tar.gz")
sha256sums=('50e27f3f77353deeddf1e4eec5b7d32015af37158315c34232303af3b248e839')
build() {
cd "$srcdir/$pkgname-$pkgver"
python -m build --wheel --no-isolation
}
check() {
cd "$srcdir/$pkgname-$pkgver"
export PYTHONPATH="$srcdir/$pkgname-$pkgver:$PYTHONPATH"
pytest
}
package() {
cd "$srcdir/$pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}
|