# Contributor: Holger Jaekel <holger.jaekel@gmx.de>
# Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
pkgname=py3-snuggs
_pkgname=snuggs
pkgver=1.4.7
pkgrel=7
pkgdesc="Snuggs are s-expressions for Numpy"
url="https://pypi.org/project/snuggs/"
arch="noarch"
license="MIT"
depends="python3 py3-numpy py3-parsing"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-hypothesis"
subpackages="$pkgname-pyc"
source="$_pkgname-$pkgver.tar.gz::https://github.com/mapbox/snuggs/archive/$pkgver.tar.gz
	test-xfail.patch
	"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
c1f40e521d1b0cf15075b22b04000c74ecbd0522cdd820b8c159aac812924d877349b3f3bca93b09eed5b025a34c26665a41c7a52a8145419558b115cf8ef361  snuggs-1.4.7.tar.gz
c96c086fc20141ea2c4904c6cd00bf895c1a1a37f1334e1a020671e1684eaf97da6b5fd1a027cf3c074684bbaff5d2f3ea95c3b3a5ad5d2037bae4586d8daaf5  test-xfail.patch
"
