summaryrefslogtreecommitdiff
path: root/repo/python-pyparsing/python-pyparsing.xibuild
blob: beb20bafd7512ab61b89a1d9e1b631de9a9d92b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

MAKEDEPS="python python-gpep517 python-flit"
DEPS=""

PKG_VER=3.0.9
SOURCE=https://github.com/pyparsing/pyparsing/archive/pyparsing_$PKG_VER.tar.gz
DESC="General parsing module for Python"

build() {
	mkdir -p dist
	local backend="$(python3 -m gpep517 get-backend)"
	python3 -m gpep517 build-wheel \
		--wheel-dir dist \
		--backend "$backend" \
		--output-fd 1
}

package() {
	python3 -m installer -d "$PKG_DEST" \
		dist/pyparsing-$PKG_VER-py3-none-any.whl
}