mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-16 04:35:13 +03:00
34 lines
1.1 KiB
Text
34 lines
1.1 KiB
Text
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
|
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
|
pkgname=py3-setuptools-rust
|
|
pkgver=1.3.0
|
|
pkgrel=1
|
|
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 py3-typing-extensions rust cargo"
|
|
makedepends="py3-setuptools py3-wheel py3-setuptools_scm"
|
|
checkdepends="py3-pytest py3-nox 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() {
|
|
nox -s test-examples
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
e9259befb38ee22d355c9dcebc4cb5dd0d23b7a00ac9be16ce61f8c11bd0cee3a2afd2099f8882e9224475d084a61c1721cfee48200d7b061bffa631380d73b4 py3-setuptools-rust-1.3.0.tar.gz
|
|
"
|