blob: 513bb4c30525fcb2e0c10782adbee9057c07aadc (
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
|
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-yapf
pkgver=0.32.0
pkgrel=1
pkgdesc="A formatter for Python files"
url="https://github.com/google/yapf"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/google/yapf/archive/v$pkgver/py3-yapf-$pkgver.tar.gz"
builddir="$srcdir/yapf-$pkgver"
build() {
python3 setup.py build
}
check() {
python3 setup.py test
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
c1a05a04f7558a5b51899c29010bedc105c4a4bad4b5358a903a22a39f451e03369d2b4e670ecb44a857a8fef2bf438d9da0afcbdd3a336cf037bbf480d19878 py3-yapf-0.32.0.tar.gz
"
|