blob: dd60ebc2ef1ba742318c9b0b7a58ca58a6904465 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: KokaKiwi <kokakiwi+aur@kokakiwi.net>
_pkgname=parsita
pkgname="python-$_pkgname"
pkgver=2.2.0
pkgrel=1
pkgdesc="Parser combinator library for Python."
arch=('any')
url="https://pypi.org/project/parsita"
license=('MIT')
depends=('python' 'python-returns')
makedepends=('python-poetry-core' 'python-build' 'python-installer' 'python-wheel')
checkdepends=('python-pytest' 'python-pytest-timeout')
source=("$pkgname-$pkgver.tar.gz::https://github.com/drhagen/parsita/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('fe9cb802080af31a42bd2737b0c6545c6a80721defae20a985e4c4fa067e6296')
b2sums=('a06322180862d306cf77701289ed10a04e7d4e3b5b9263cb7f2ffabd69bab3896f10a7eff817abeb2b663e9413ceabcb99110c4bdc2ba6746a666b912638830e')
build() {
cd "$_pkgname-$pkgver"
python -m build --wheel --no-isolation
}
check() {
cd "$_pkgname-$pkgver"
export PYTHONPATH="src"
pytest
}
package() {
cd "$_pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|