32 lines
970 B
Text
32 lines
970 B
Text
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
_pyname=dacite
|
|
pkgname="py3-$_pyname"
|
|
pkgver=1.8.0
|
|
pkgrel=0
|
|
arch="!armv7 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="
|
|
7e9ebf7da56aa8e65d5a5f0576a0e268344ee40459bdcde2560d17e90d4b73f660ce9dbec3ab5377100f42a21ad8698019b5b6f4fa03ddcd959af5ebb261b465 py3-dacite-1.8.0.tar.gz
|
|
"
|