mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
60 lines
1.4 KiB
Plaintext
60 lines
1.4 KiB
Plaintext
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
pkgname=py3-setuptools-rust
|
|
pkgver=1.10.1
|
|
pkgrel=0
|
|
pkgdesc="Setuptools plugin for rust support"
|
|
url="https://github.com/PyO3/setuptools-rust"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
cargo
|
|
py3-semantic-version
|
|
py3-setuptools
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools_scm
|
|
py3-wheel
|
|
"
|
|
checkdepends="
|
|
libffi-dev
|
|
py3-pytest
|
|
python3-dev
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
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
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
# This test relies on behavior that may be glibc-specific
|
|
mv -v examples/hello-world/noxfile.py \
|
|
examples/hello-world/noxfile.py.disabled
|
|
}
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest tests/ setuptools_rust/
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
9fff3f5a8f1808da4a588ab2e3684b0d279c7813fbcb994a98996a5f20bbe9f5e26e2ad3235f35baac727106ea5023e744015f238b22436bbf3a3f6e0e8b9c2f py3-setuptools-rust-1.10.1.tar.gz
|
|
"
|