aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-setuptools-rust/APKBUILD
blob: 0074770e798924cb4cdda1335ac180df6b3a9141 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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

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
"