1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 01:05:15 +03:00
aports/testing/py3-setuptools-rust/APKBUILD
2022-02-02 06:44:07 +00:00

37 lines
1.1 KiB
Text

# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=py3-setuptools-rust
pkgver=1.1.2
pkgrel=0
pkgdesc="Setuptools plugin for rust support"
url="https://github.com/PyO3/setuptools-rust"
# s390x, riscv64 blocked by rust
arch="noarch !s390x !riscv64"
license="MIT"
depends="py3-semantic-version rust cargo"
makedepends="py3-setuptools py3-wheel py3-setuptools_scm"
checkdepends="py3-pytest py3-tox python3-dev libffi-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/PyO3/setuptools-rust/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/setuptools-rust-$pkgver"
options="net" # check needs network access, no easy patch
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
build() {
python3 setup.py build
}
check() {
tox -e pytest
for example_dir in examples/*; do
tox -c $example_dir -e py
done
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
203462bc02d2891906779276da1859a31f26c8cb16e8e4b85bf082dca48999eef848cc41447952ce90eafd35022cbd5cddb9ea7b5087f94af977bd7e4ea38a27 py3-setuptools-rust-1.1.2.tar.gz
"