mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-05 05:57:14 +02:00
37 lines
1.1 KiB
Text
37 lines
1.1 KiB
Text
# Contributor: Marian Buschsieweke <marian.buschsieweke@posteo.net>
|
||
# Maintainer: Marian Buschsieweke <marian.buschsieweke@posteo.net>
|
||
pkgname=py3-bson
|
||
_pkgname=bson
|
||
pkgver=0.5.10
|
||
pkgrel=6
|
||
pkgdesc="Independent BSON codec for Python that doesn’t depend on MongoDB"
|
||
options="!check" # No testsuite
|
||
url="https://github.com/py-bson/bson"
|
||
arch="noarch"
|
||
license="BSD-3-Clause"
|
||
depends="py3-dateutil py3-six"
|
||
makedepends="py3-setuptools py3-gpep517"
|
||
subpackages="$pkgname-pyc"
|
||
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$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
|
||
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||
.testenv/bin/python3 -m unittest discover
|
||
}
|
||
|
||
package() {
|
||
gpep517 install-wheel --destdir "$pkgdir" \
|
||
.dist/*.whl
|
||
}
|
||
|
||
sha512sums="
|
||
649c34aecbcf0e57bd2363bf05d4a7ce58d8dd5b7c25608136fe0155297f800e867df1c4f4785fb4f7db88aa4d79f2d23c401eedbec66056a12dd9d451f2a96b bson-0.5.10.tar.gz
|
||
"
|