1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 12:45:20 +03:00
aports/community/py3-setuptools-rust/APKBUILD
2023-10-28 21:57:14 +00:00

53 lines
1.2 KiB
Text

# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=py3-setuptools-rust
pkgver=1.6.0
pkgrel=1
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-nox
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
typing-ext.patch
"
builddir="$srcdir/setuptools-rust-$pkgver"
options="net" # check needs network access, no easy patch
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
nox -s test-examples
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
93945d06e8cb38c5764fa8ec12b039111b3ee677dfe66350a4f554f1c1622885a0dcef34a1b429172859bca1081df8b82c05ce81b6714c6d43cfa073ade75785 py3-setuptools-rust-1.6.0.tar.gz
c3a073759a7ec1e8cb1f7ef5e9fb0d215e4bdd990eb2889004be915955bbc3d3ceb022897c5d7e496cd164d0b934b4fcf33c84658b25a70fcc63ef0ee4a3ce22 typing-ext.patch
"