1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00
aports/community/py3-asttokens/APKBUILD
psykose deb62258ec */*: set --skip-build for python installs
this marginally increases install speed by not checking if it needs a rebuild.
also remove --prefix=/usr as it defaults to /usr already.

might break a build or two, will fix later
2023-01-10 04:19:31 +01:00

32 lines
930 B
Text

# Contributor: Justin Berthault <justin.berthault@zaclys.net>
# Maintainer: Justin Berthault <justin.berthault@zaclys.net>
pkgname=py3-asttokens
pkgver=2.2.1
pkgrel=0
pkgdesc="Annotate AST trees with source code positions"
url="https://github.com/gristlabs/asttokens"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-six"
makedepends="py3-setuptools py3-setuptools_scm"
checkdepends="py3-astroid py3-pytest"
source="https://files.pythonhosted.org/packages/source/a/asttokens/asttokens-$pkgver.tar.gz
"
builddir="$srcdir/"asttokens-$pkgver
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
python3 setup.py build
}
check() {
env PYTHONPATH="$PWD/build/lib" py.test-3 -v
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
0bd2b86e8f8170566de3d26ccce4d897362907e37edf2f7a78fc47326cfb5a2003a3c4fe41d022791aae93ee7953d5a7110849afadd2014e63492809712c9dd7 asttokens-2.2.1.tar.gz
"