From d720184e8cba78dd2134e67b3f48bcd2723d6d99 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Sun, 16 Jul 2017 04:45:38 +0000 Subject: python-jsonschema: initial inclusion. dep of flexget --- abs/core/python_modules/python-jsonschema/PKGBUILD | 38 ++++++++++++++++++++++ .../python_modules/python-jsonschema/__changelog | 2 ++ 2 files changed, 40 insertions(+) create mode 100644 abs/core/python_modules/python-jsonschema/PKGBUILD create mode 100644 abs/core/python_modules/python-jsonschema/__changelog 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 +# Contributor: Bogdan Szczurek +# Contributor: Ismo Toijala + +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 + -- cgit v0.12