upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-cssselect2 / trunk / PKGBUILD
blobee1c3f6f4fb322a8409caad130ce12103171ff21
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Simon Sapin <simon dot sapin at exyr dot org>
3 # Contributor: Kyle Keen <keenerd@gmail.com>
5 pkgname=python-cssselect2
6 pkgver=0.7.0
7 pkgrel=2
8 pkgdesc="CSS selectors for Python ElementTree"
9 url="https://pypi.org/project/cssselect2/"
10 license=('BSD')
11 arch=('any')
12 depends=('python-tinycss2' 'python-webencodings')
13 makedepends=('python-build' 'python-flit-core' 'python-installer')
14 checkdepends=('python-pytest-cov' 'python-pytest-isort' 'python-pytest-runner')
15 source=("https://pypi.io/packages/source/c/cssselect2/cssselect2-$pkgver.tar.gz")
16 sha512sums=('e3c975fe159d3bec53002bda31c72d9cb346f40529272d8d5bef6aa13142ce60f1e8aa20b039d93ff5ff3d2cd34119b8b2d406f889964eded69e770e4f04e949')
18 build() {
19   cd cssselect2-$pkgver
20   python -m build -nw
23 check() {
24   cd cssselect2-$pkgver
25   pytest
28 package() {
29   cd cssselect2-$pkgver
30   python -m installer --destdir="$pkgdir" dist/*.whl
31   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/