mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-astunparse: new aport
This commit is contained in:
parent
2e596bc506
commit
c6b16145b5
43
testing/py3-astunparse/APKBUILD
Normal file
43
testing/py3-astunparse/APKBUILD
Normal file
@ -0,0 +1,43 @@
|
||||
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
||||
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
||||
pkgname=py3-astunparse
|
||||
pkgver=1.6.3
|
||||
pkgrel=0
|
||||
pkgdesc="An AST unparser for Python"
|
||||
url="https://github.com/simonpercivall/astunparse"
|
||||
arch="noarch"
|
||||
license="Python-2.0"
|
||||
depends="
|
||||
py3-six
|
||||
python3
|
||||
"
|
||||
makedepends="
|
||||
py3-gpep517
|
||||
py3-installer
|
||||
py3-setuptools
|
||||
py3-wheel
|
||||
"
|
||||
checkdepends="py3-pytest"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="https://pypi.python.org/packages/source/a/astunparse/astunparse-$pkgver.tar.gz"
|
||||
builddir="$srcdir/astunparse-$pkgver"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
# lots of failures in tests/test_dump.py, probably broken
|
||||
PYTHONPATH="$PWD/build/lib" pytest --ignore tests/test_dump.py -k 'not test_files'
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
12e99b32524e551494d3053a57aeb646bca8a96a9aa17b0737e6dace6c11874e2e7633d82197cacc0b55622bea637030344ab45c8db57ef244bd63663799d2e9 astunparse-1.6.3.tar.gz
|
||||
"
|
Loading…
Reference in New Issue
Block a user