mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-04 16:21:38 +01:00
47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
|
|
# Maintainer: Henrik Riomar <henrik.riomar@gmail.com>
|
|
pkgname=py3-binson-python
|
|
_pkgname=binson-python
|
|
pkgver=0.0.1
|
|
pkgrel=0
|
|
pkgdesc="A Python implementation of Binson"
|
|
url="https://github.com/assaabloy-ppi/binson-python"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
py3-six
|
|
python3
|
|
"
|
|
checkdepends="
|
|
py3-pytest
|
|
py3-pytest-cov
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/assaabloy-ppi/binson-python/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
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
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" .dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
27dd7c657be25547ca19395ca4286013d05abe471bad4c2a88d5351fee45bb1e35754f3118f84fc846ca93c2c0612a95df0e11c48a4e56e041be74abcf81a3fd py3-binson-python-0.0.1.tar.gz
|
|
"
|