# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=py3-enrich
_pkgname=enrich
pkgver=1.2.7
pkgrel=4
pkgdesc="adds few missing features to the wonderful rich library"
url="https://github.com/pycontribs/enrich"
arch="noarch"
license="MIT"
depends="py3-rich"
makedepends="
	py3-pytest
	py3-pytest-mock
	py3-setuptools
	py3-setuptools_scm
	"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

check() {
	# https://github.com/pycontribs/enrich/issues/40
	pytest -v -k 'not test_rich_console_ex'
}

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

sha512sums="
4e3d8598e82d7d013ff74dd325be02245086159fef819431a1ba7505e2e1557992ccbefc0b5a37d0e81487b4e378bef02179c6b74fd50528d6710ff297f0832a  enrich-1.2.7.tar.gz
"
