blob: 2e53a40a4937e29a4073286e53e84db735bd7412 (
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: Jeremy Cantrell <jmcantrell at gmail dot com>
pkgname=swaystatus
pkgver=0.5.1
pkgrel=1
pkgdesc="Generate a status line for swaybar"
arch=('any')
url="https://git.sr.ht/~jmcantrell/$pkgname"
license=('MIT')
depends=('python' 'python-toml')
optdepends=()
makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-hatchling')
checkdepends=('python-pytest' 'python-pytest-cov')
provides=()
conflicts=()
source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/${pkgname//-/_}-$pkgver.tar.gz")
md5sums=('2bcc4b8489d23184a6d32e6978c02ff7')
check() {
cd "$srcdir/${pkgname#python-}-$pkgver" || return
PYTHONPATH=$PWD/src pytest --no-cov
}
build() {
cd "$srcdir/${pkgname#python-}-$pkgver" || return
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/${pkgname#python-}-$pkgver" || return
python -m installer --compile-bytecode=1 --destdir="$pkgdir" dist/*.whl
}
|