# Contributor: Peter Shkenev <santurysim@gmail.com>
# Maintainer: Peter Shkenev <santurysim@gmail.com>
pkgname=py3-css-parser
pkgver=1.0.10
pkgrel=1
pkgdesc="CSS related utilities (parsing, serialization, etc) for python"
url="https://github.com/ebook-utils/css-parser"
arch="noarch"
license="LGPL-3.0-or-later"
depends="python3 py3-chardet"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/ebook-utils/css-parser/archive/refs/tags/v$pkgver.tar.gz
	10-remove-tests.patch
	"
builddir="$srcdir/css-parser-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 run_tests.py
}

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

sha512sums="
e98b81da774ff6c79c831e57fc63275e41847a1b6d55e7d1cffcb721a5f36ee534400f5eff972143d6c54a7dafe23701dfab49dc6b5b711ef9aa22c0e6b456eb  py3-css-parser-1.0.10.tar.gz
4040b505625255b73d7dd4d51a6a91d1aed4c774be1e5adf0a092fcd87852a52a81a5ba1e772ccda8ffc71c5a7edce9ed6246d11d67b8f486754eff07764cba9  10-remove-tests.patch
"
