mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 12:15:32 +03: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.2
|
|
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="
|
|
427bbf70ecb3f44574faf63a4a5777ca662ef2ee274d4fa59cc32cc783a0c3f48988de8801e0ea8446b95e39a68c1f08e48f513040777f0ab6c63d2216925b41 dataclasses-json-0.6.2.tar.gz
|
|
"
|