archrelease: copy trunk to extra-x86_64
[arch-packages.git] / python-pyparsing / trunk / PKGBUILD
blob3ceb834b306a1def3a9ee9893cf9cd3466961a5a
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Alexander F Rødseth <xyproto@archlinux.org>
3 # Contributor: Chris Brannon <cmbrannon79@gmail.com>
4 # Contributor: Geoffroy Carrier <geoffroy.carrier@aur.archlinux.org>
5 # Contributor: Arvid Ephraim Picciani <aep@exys.org>
6 # Contributor: Michael Krauss <hippodriver@gmx.net>
8 pkgname=python-pyparsing
9 pkgver=3.0.9
10 pkgrel=1
11 pkgdesc='General parsing module for Python'
12 arch=('any')
13 url='https://github.com/pyparsing/pyparsing/'
14 license=('MIT')
15 depends=('python')
16 makedepends=('python-build' 'python-installer' 'python-flit-core')
17 checkdepends=('python-jinja' 'python-railroad-diagrams')
18 optdepends=('python-railroad-diagrams: for generating Railroad Diagrams'
19             'python-jinja: for generating Railroad Diagrams')
20 source=("https://github.com/pyparsing/pyparsing/archive/pyparsing_$pkgver.tar.gz")
21 sha512sums=('1158f27e31f8eced540217b7234b09005eac416fad74faf59678fdae93fe2f76e0e3b5f4adfd3ceb42c8aef19150950293e989c9a5189741175073eb7a03cd6d')
23 build() {
24   cd pyparsing-pyparsing_$pkgver
25   python -m build -nw
28 check() {
29   cd pyparsing-pyparsing_$pkgver
30   python -m unittest
33 package() {
34   cd pyparsing-pyparsing_$pkgver
35   python -m installer --destdir="$pkgdir" dist/*.whl
36   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
39 # vim:set ts=2 sw=2 et: