diff options
author | BuildTools | 2019-01-06 14:07:33 -0500 |
---|---|---|
committer | BuildTools | 2019-01-06 14:07:33 -0500 |
commit | 06de3a3b8f1fd5a1d46beb3641995d59d546cf17 (patch) | |
tree | 56f32521905bb6da27d79a9ec235761371ca5be2 | |
download | aur-06de3a3b8f1fd5a1d46beb3641995d59d546cf17.tar.gz |
initial version
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0ec53ab0db83 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = python-jsonpath-rw + pkgdesc = A robust and significantly extended implementation of JSONPath for Python. + pkgver = 1.4.0 + pkgrel = 1 + url = https://github.com/kennknowles/python-jsonpath-rw + arch = any + license = Apache + checkdepends = python + checkdepends = python2 + makedepends = python-setuptools + makedepends = python2-setuptools + source = https://github.com/kennknowles/python-jsonpath-rw/archive/1.4.0.tar.gz + sha256sums = 0aac3458f78b115e661a51610b631c46f27c8b6a4446e4dafb9a13b5ddb5d5e7 + +pkgname = python-jsonpath-rw + pkgdesc = A robust and significantly extended implementation of JSONPath for Python3. + depends = python + +pkgname = python2-jsonpath-rw + pkgdesc = A robust and significantly extended implementation of JSONPath for Python2 + depends = python2 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..af5b4fb2658e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Jameson Pugh <imntreal@gmail.com> + +pkgbase=python-jsonpath-rw +pkgname=('python-jsonpath-rw' 'python2-jsonpath-rw') +pkgver=1.4.0 +pkgrel=1 +pkgdesc="A robust and significantly extended implementation of JSONPath for Python." +arch=('any') +url='https://github.com/kennknowles/python-jsonpath-rw' +license=('Apache') +makedepends=('python-setuptools' 'python2-setuptools') +checkdepends=('python' 'python2') +source=("https://github.com/kennknowles/python-jsonpath-rw/archive/${pkgver}.tar.gz") +sha256sums=('0aac3458f78b115e661a51610b631c46f27c8b6a4446e4dafb9a13b5ddb5d5e7') + +check() { + cd "${srcdir}/${pkgbase}-${pkgver}" + python setup.py test + python2 setup.py test +} + +package_python-jsonpath-rw() { + depends=('python') + pkgdesc="A robust and significantly extended implementation of JSONPath for Python3." + + cd "${srcdir}/${pkgbase}-${pkgver}" + python setup.py install --root=${pkgdir} +} + +package_python2-jsonpath-rw() { + depends=('python2') + pkgdesc="A robust and significantly extended implementation of JSONPath for Python2" + + cd "${srcdir}/${pkgbase}-${pkgver}" + python2 setup.py install --root=${pkgdir} + mv "${pkgdir}/usr/bin/jsonpath.py" "${pkgdir}/usr/bin/jsonpath2.py" +} + +# vim:set ts=2 sw=2 et: |