mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 17:16:44 +02:00
36 lines
1.2 KiB
Text
36 lines
1.2 KiB
Text
# Contributor: Alex McGrath <amk@amk.ie>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=py3-marshmallow
|
|
_pkgname=marshmallow
|
|
pkgver=3.26.1
|
|
pkgrel=0
|
|
pkgdesc="A lightweight library for converting complex objects to and from simple Python datatypes"
|
|
url="https://github.com/marshmallow-code/marshmallow"
|
|
arch="noarch"
|
|
license="MIT"
|
|
makedepends="py3-flit-core py3-gpep517 py3-wheel"
|
|
checkdepends="py3-pytest py3-tz py3-simplejson tzdata"
|
|
subpackages="$pkgname-pyc"
|
|
source="py3-marshmallow-$pkgver.tar.gz::https://github.com/marshmallow-code/marshmallow/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
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
|
.testenv/bin/python3 -m pytest -k 'not test_unknown_parameter_value_is_validated'
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
c886bc95fc72a3684fd668f1b69a0fb1065d37bfebb86a0fa86fcdf371f856d57711de080cea8c47af0153bffdb7b2d5f20d6bbfffae9ec2a99e84452601f290 py3-marshmallow-3.26.1.tar.gz
|
|
"
|