Date: Monday, November 9, 2020 @ 18:19:09 Author: foutrelis Revision: 747964
archrelease: copy trunk to community-staging-any Added: python-jsonschema/repos/community-staging-any/ python-jsonschema/repos/community-staging-any/PKGBUILD (from rev 747963, python-jsonschema/trunk/PKGBUILD) ----------+ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) Copied: python-jsonschema/repos/community-staging-any/PKGBUILD (from rev 747963, python-jsonschema/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2020-11-09 18:19:09 UTC (rev 747964) @@ -0,0 +1,38 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Daniel Wallace <danielwallace at gtmanfred.com> +# Contributor: Bogdan Szczurek <thebod...@gmail.com> +# Contributor: Ismo Toijala <ismo.toij...@gmail.com> + +pkgname=python-jsonschema +pkgver=3.2.0 +pkgrel=3 +pkgdesc="An implementation of JSON Schema validation for Python" +arch=('any') +url="https://pypi.python.org/pypi/jsonschema" +license=('MIT') +depends=('python-attrs' 'python-importlib-metadata' 'python-pyrsistent' 'python-setuptools') +makedepends=('python-setuptools-scm') +checkdepends=('python-twisted' 'python-idna' 'python-jsonpointer' 'python-strict-rfc3339' + 'python-rfc3987' 'python-webcolors') +source=("$pkgname-$pkgver.tar.bz2::https://github.com/Julian/jsonschema/archive/v$pkgver.tar.gz") +sha512sums=('a575e9e7b0668220854e7ae45f2afd433643c3f0bfeb9769413cfc072ae01513a8d97bddbb6317f42348e09081e72bbad801d00ee5e3c0ac840bd19e934955cd') + +export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver + +build() { + cd jsonschema-$pkgver + python setup.py build +} + +check() { + cd jsonschema-$pkgver + python setup.py install --root="$PWD/tmp_install" --optimize=1 + PYTHONPATH="$PWD/tmp_install/usr/lib/python3.9/site-packages" JSON_SCHEMA_TEST_SUITE=json trial3 jsonschema + python -m doctest README.rst +} + +package() { + cd jsonschema-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 json/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +}