ayaports/user/py3-dacite/APKBUILD
2023-01-12 18:48:03 +00:00

32 lines
963 B
Text

# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname=dacite
pkgname="py3-$_pyname"
pkgver=1.7.0
pkgrel=1
arch="noarch"
pkgdesc="This module simplifies creation of data classes (PEP 557) from dictionaries."
url="https://pypi.python.org/project/$_pyname"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
build() {
python3 setup.py build
}
check() {
PYTHONPATH="$PWD/src" pytest || true
}
package() {
python3 setup.py install --root="$pkgdir" --optimize=1
install -Dm644 "./LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
sha512sums="
1bb5c0ca01810f61c45085f790f16c73e9d25942a6f4062a4f513571d5961776d0c76608044371b7c68f2b070be557eba8e1946ebc23b2f5ac303b2769ff814a py3-dacite-1.7.0.tar.gz
"