aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-astor/APKBUILD
blob: ebd7dff07125b24971318d02009599a9afa9dfbd (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-astor
pkgver=0.8.1
pkgrel=5
pkgdesc="Easy manipulation of Python source via the AST"
url="https://github.com/berkerpeksag/astor"
arch="noarch"
license="BSD-3-Clause-Clear"
depends="python3"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="https://github.com/berkerpeksag/astor/archive/$pkgver/astor-$pkgver.tar.gz
	fix-tests.patch
	"
builddir="$srcdir/astor-$pkgver"

prepare() {
	default_prepare
	# Tries to roundtrip every package on the system and is unreliable
	rm -f tests/test_rtrip.py
}

build() {
	python3 setup.py build
}

check() {
	python3 -m unittest discover -v
}

package() {
	python3 setup.py install --skip-build --prefix=/usr --root="$pkgdir"
}

sha512sums="
8917898e284fb5e5855a05f8e3f1c8925c4128d2a87f67f0334914d4d3c54b53c4f0cadd04d632a7bcaf3438db7edf2d989b07a9576637c0dce6c16e85c60f83  astor-0.8.1.tar.gz
8db7208c1e92f92acd813b4191e61ab282dcb2f9e8d530187c92f4c2db0e393d352221bd301100da94fe9a3f55bdd1d99695977239362b8e4e4b2a9bd190d178  fix-tests.patch
"