# Maintainer: fossdd pkgname=py3-itemloaders pkgver=1.2.0 pkgrel=0 pkgdesc="Library to populate items using XPath and CSS with a convenient API" url="https://github.com/scrapy/itemloaders" arch="noarch" license="BSD-3-Clause" depends=" py3-itemadapter py3-jmespath py3-parsel py3-w3lib python3 " makedepends="py3-gpep517 py3-setuptools py3-wheel" checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/scrapy/itemloaders/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/itemloaders-$pkgver" build() { gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" .dist/*.whl } sha512sums=" 2e15053b20e01500a496133257200f34c430ed27ae3c5f8c49fe226cffe357fbd35d561d78c2478a621d5cdb3c08631d39ceeb91d114626ffe8fdc6ef4a664ff py3-itemloaders-1.2.0.tar.gz "