mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 13:46:41 +02:00
38 lines
1.2 KiB
Text
38 lines
1.2 KiB
Text
# Contributor: Alex McGrath <amk@amk.ie>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=py3-dataclasses-json
|
|
_pkgname=dataclasses-json
|
|
pkgver=0.6.7
|
|
pkgrel=0
|
|
pkgdesc="Provides a simple API for encoding and decoding dataclasses to and from JSON."
|
|
url="https://github.com/lidatong/dataclasses-json"
|
|
arch="all"
|
|
license="MIT"
|
|
depends="python3 py3-marshmallow py3-marshmallow-enum py3-typing_inspect py3-stringcase"
|
|
makedepends="py3-gpep517 py3-poetry-core py3-installer py3-poetry-dynamic-versioning"
|
|
checkdepends="py3-pytest py3-hypothesis py3-mypy"
|
|
subpackages="$pkgname-pyc"
|
|
source="dataclasses-json-$pkgver.tar.gz::https://github.com/lidatong/dataclasses-json/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
build() {
|
|
export POETRY_DYNAMIC_VERSIONING_BYPASS="$pkgver"
|
|
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="
|
|
d9b85a6821904a9f48482ff20e496e4437ff6a7f00bc5acd49b0295cfb5bbec125199f0343950f1f9ba17261aa5e4984cde292b943a17ef330d70cfc47a4ce64 dataclasses-json-0.6.7.tar.gz
|
|
"
|