mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-01 03:42:59 +02:00
33 lines
867 B
Plaintext
33 lines
867 B
Plaintext
maintainer="Michał Polański <michal@polanski.me>"
|
|
pkgname=py3-cstruct
|
|
pkgver=6.1
|
|
pkgrel=0
|
|
pkgdesc="C-style structs for Python"
|
|
url="https://github.com/andreax79/python-cstruct"
|
|
license="MIT"
|
|
arch="noarch !s390x" # test_union_unpack test fails on s390x
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://github.com/andreax79/python-cstruct/archive/v$pkgver/py3-cstruct-$pkgver.tar.gz"
|
|
builddir="$srcdir/python-cstruct-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/cstruct-$pkgver-py2.py3-none-any.whl
|
|
}
|
|
|
|
sha512sums="
|
|
402ad4367f1f0e519d9b6206ced6780b96eb732191d64f182b4d98461eb2bee6dcad25078ef4a9d0a94b3bf52ea577d2e30fb1a0b5205bb25e1521f52f8df1de py3-cstruct-6.1.tar.gz
|
|
"
|