1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 10:15:12 +03:00
aports/community/py3-setuptools-rust/APKBUILD
ptrcnull fbcf4c4f11 */*: utilise sparse crates.io fetches
this is a million times faster

new only in rust 1.68, and fails on older versions,
but we have only latest in aports and don't support anything else, so
it's okay.
2023-03-10 00:35:53 +01:00

36 lines
1.2 KiB
Text

# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=py3-setuptools-rust
pkgver=1.5.2
pkgrel=1
pkgdesc="Setuptools plugin for rust support"
url="https://github.com/PyO3/setuptools-rust"
arch="noarch"
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
distutils.patch"
builddir="$srcdir/setuptools-rust-$pkgver"
options="net" # check needs network access, no easy patch
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
build() {
python3 setup.py build
}
check() {
nox -s test-examples
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
e80d1296fd09c24b644d821e981261153ff19ae62d978fc8ee81c78e440d215f9d1e91e33d758effb94fcb64985937445940f2e2f032ad1b8c2aa39be79cf19d py3-setuptools-rust-1.5.2.tar.gz
0eb3b8c259f5d6b870ce470ab441f4963b9d181027366ec135c73deda90f803457a022dff8b84c39786fda51cbbdb1497f8bab4c8eb7ce27e188d16a413cd9e2 distutils.patch
"