# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-palettable
pkgver=3.3.3
pkgrel=2
pkgdesc="Color palettes for Python"
url="https://github.com/jiffyclub/palettable"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest py3-matplotlib py3-mock"
subpackages="$pkgname-pyc"
source="https://github.com/jiffyclub/palettable/archive/v$pkgver/palettable-$pkgver.tar.gz"
builddir="$srcdir/palettable-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 -m pytest --ignore=palettable/test/test_brewermap.py
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
33f624fca5b69a618b369d155c4544715dea9c42c7858b0d2bcfafaf77c574a563d3441763452c1475a7bf556d6e28b3ccd25b143f5faf8ae2069be463ec982b  palettable-3.3.3.tar.gz
"
