ayaports/user/py3-dacite/APKBUILD

33 lines
963 B
Text
Raw Normal View History

2022-12-27 20:40:33 +00:00
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname=dacite
pkgname="py3-$_pyname"
2023-04-01 13:14:36 +00:00
pkgver=1.8.0
pkgrel=0
2022-12-27 20:40:33 +00:00
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() {
2023-01-12 18:48:03 +00:00
python3 setup.py build
2022-12-27 20:40:33 +00:00
}
check() {
PYTHONPATH="$PWD/src" pytest || true
}
package() {
2023-01-12 18:48:03 +00:00
python3 setup.py install --root="$pkgdir" --optimize=1
2022-12-27 20:40:33 +00:00
install -Dm644 "./LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
sha512sums="
2023-04-01 13:14:36 +00:00
7e9ebf7da56aa8e65d5a5f0576a0e268344ee40459bdcde2560d17e90d4b73f660ce9dbec3ab5377100f42a21ad8698019b5b6f4fa03ddcd959af5ebb261b465 py3-dacite-1.8.0.tar.gz
2022-12-27 20:40:33 +00:00
"