Skip to content
Snippets Groups Projects
Commit 45fcf269 authored by Natanael Copa's avatar Natanael Copa
Browse files

community/py3-astor: rebuild against python 3.9

parent 96f946c3
No related merge requests found
......@@ -2,27 +2,32 @@
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-astor
pkgver=0.8.1
pkgrel=0
pkgrel=1
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"
checkdepends="py3-nose"
source="https://github.com/berkerpeksag/astor/archive/$pkgver/astor-$pkgver.tar.gz"
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() {
nosetests -v
python3 -m unittest discover -v
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
python3 setup.py install --skip-build --prefix=/usr --root="$pkgdir"
}
sha512sums="8917898e284fb5e5855a05f8e3f1c8925c4128d2a87f67f0334914d4d3c54b53c4f0cadd04d632a7bcaf3438db7edf2d989b07a9576637c0dce6c16e85c60f83 astor-0.8.1.tar.gz"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment