summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2017-07-16 04:45:38 (GMT)
committerBritney Fransen <brfransen@gmail.com>2017-07-16 04:45:38 (GMT)
commitd720184e8cba78dd2134e67b3f48bcd2723d6d99 (patch)
treeee4a4732b91aaa7b43dea648896eab53d21abb3a
parent34677dae9b19cf4c8731b99d41a97ec47c6c795e (diff)
downloadlinhes_pkgbuild-d720184e8cba78dd2134e67b3f48bcd2723d6d99.zip
linhes_pkgbuild-d720184e8cba78dd2134e67b3f48bcd2723d6d99.tar.gz
linhes_pkgbuild-d720184e8cba78dd2134e67b3f48bcd2723d6d99.tar.bz2
python-jsonschema: initial inclusion. dep of flexget
-rw-r--r--abs/core/python_modules/python-jsonschema/PKGBUILD38
-rw-r--r--abs/core/python_modules/python-jsonschema/__changelog2
2 files changed, 40 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-jsonschema/PKGBUILD b/abs/core/python_modules/python-jsonschema/PKGBUILD
new file mode 100644
index 0000000..45de390
--- /dev/null
+++ b/abs/core/python_modules/python-jsonschema/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Daniel Wallace <danielwallace at gtmanfred.com>
+# Contributor: Bogdan Szczurek <thebodzio@gmail.com>
+# Contributor: Ismo Toijala <ismo.toijala@gmail.com>
+
+pkgbase=python-jsonschema
+_pkgname=jsonschema
+pkgname=(python2-jsonschema)
+pkgver=2.6.0
+pkgrel=1
+pkgdesc="An implementation of JSON Schema validation for Python"
+arch=(any)
+url="http://pypi.python.org/pypi/jsonschema"
+license=('MIT')
+makedepends=(python2-setuptools)
+source=("https://pypi.io/packages/source/j/jsonschema/${pkgname:8}-$pkgver.tar.gz")
+
+prepare(){
+ cp -a $_pkgname-$pkgver $_pkgname-$pkgver-2
+ find $_pkgname-$pkgver-2 -name \*.py -exec sed -i '1s/python$/&2/' {} +
+}
+
+package_python-jsonschema() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1
+ depends=(python)
+ install -D -m644 json/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-jsonschema() {
+ cd "$srcdir/$_pkgname-$pkgver-2"
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+ depends=(python2-functools32)
+ install -D -m644 json/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ mv $pkgdir/usr/bin/jsonschema{,2}
+}
+
+md5sums=('50c6b69a373a8b55ff1e0ec6e78f13f4')
diff --git a/abs/core/python_modules/python-jsonschema/__changelog b/abs/core/python_modules/python-jsonschema/__changelog
new file mode 100644
index 0000000..4f818ef
--- /dev/null
+++ b/abs/core/python_modules/python-jsonschema/__changelog
@@ -0,0 +1,2 @@
+PKGBUILD: don't build py 3 stuff
+