32 lines
961 B
Text
32 lines
961 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=0
|
|
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() {
|
|
python setup.py build
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH="$PWD/src" pytest || true
|
|
}
|
|
|
|
package() {
|
|
python 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
|
|
"
|