mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
37 lines
1.1 KiB
Text
37 lines
1.1 KiB
Text
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
|
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
|
pkgname=py3-setuptools-rust
|
|
pkgver=1.2.0
|
|
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="
|
|
de7a91f20894ec63910c9c4ff02b4a2ecd0a2492e0f94760e44f19f9bae110a59af30b278aebfc4f2fff8a791db5cfa03e1b32a764f6196bb4afbfcd7b1178ef py3-setuptools-rust-1.2.0.tar.gz
|
|
"
|