summaryrefslogtreecommitdiff
path: root/user/py3-pyparsing
diff options
context:
space:
mode:
Diffstat (limited to 'user/py3-pyparsing')
-rw-r--r--user/py3-pyparsing/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/py3-pyparsing/APKBUILD b/user/py3-pyparsing/APKBUILD
new file mode 100644
index 000000000..f84545871
--- /dev/null
+++ b/user/py3-pyparsing/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Brandon Bergren <git@bdragon.rtk0.net>
+# Maintainer: Brandon Bergren <git@bdragon.rtk0.net>
+pkgname=py3-pyparsing
+_pkgname=pyparsing
+pkgver=2.3.1
+pkgrel=0
+pkgdesc="Python parsing module"
+url="https://pypi.python.org/pypi/pyparsing"
+arch="noarch"
+options="!check" # Multiple problems in tests.
+license="MIT"
+depends="python3"
+makedepends="python3-dev"
+checkdepends="py3-pytest"
+source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ python3 setup.py build
+}
+
+check() {
+ cd "$builddir"
+ python3 setup.py test
+}
+
+package() {
+ cd "$builddir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+
+}
+
+sha512sums="fc8342780c38fd08c07d0b885c4d6c77d59f38098aa13c3abd05a790ee6caf2065a0bdab33bc290a6e2da123f4ac7e38c049e389b740546499dc48eba7ae431f py3-pyparsing-2.3.1.tar.gz"