[arch-commits] Commit in python-jsonschema/repos (2 files)

2022-08-29 Thread Antonio Rojas via arch-commits
Date: Monday, August 29, 2022 @ 19:03:24
  Author: arojas
Revision: 1285572

archrelease: copy trunk to community-testing-any

Added:
  python-jsonschema/repos/community-testing-any/
  python-jsonschema/repos/community-testing-any/PKGBUILD
(from rev 1285571, python-jsonschema/trunk/PKGBUILD)

--+
 PKGBUILD |   39 +++
 1 file changed, 39 insertions(+)

Copied: python-jsonschema/repos/community-testing-any/PKGBUILD (from rev 
1285571, python-jsonschema/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2022-08-29 19:03:24 UTC (rev 1285572)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan 
+# Contributor: Daniel Wallace 
+# Contributor: Bogdan Szczurek 
+# Contributor: Ismo Toijala 
+
+pkgname=python-jsonschema
+pkgver=4.14.0
+pkgrel=1
+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-rfc3987' 'python-jsonpointer' 'python-typing_extensions' 
'python-webcolors')
+makedepends=('python-build' 'python-installer' 'python-hatchling' 
'python-hatch-vcs' 'python-hatch-fancy-pypi-readme')
+checkdepends=('python-twisted' 'python-idna' 'python-jsonpointer' 
'python-strict-rfc3339'
+  'python-rfc3987' 'python-webcolors' 'python-pip')
+source=("$pkgname-$pkgver.tar.bz2::https://github.com/Julian/jsonschema/archive/v$pkgver.tar.gz;)
+sha512sums=('58201fd7c58fe966807737cca45707ae2e3a980f3cc6d5c72c4342bad927de0fbd0156578c06cf39ad280e0026742a2f492388a0b7d4063507174b319c38071e')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd jsonschema-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd jsonschema-$pkgver
+  python -m installer --destdir="$PWD/tmp_install" dist/*.whl
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages" \
+JSON_SCHEMA_TEST_SUITE=json trial jsonschema
+  python -m doctest README.rst
+}
+
+package() {
+  cd jsonschema-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -D -m644 json/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



[arch-commits] Commit in python-jsonschema/repos (2 files)

2022-07-31 Thread Antonio Rojas via arch-commits
Date: Sunday, July 31, 2022 @ 10:30:33
  Author: arojas
Revision: 1259270

archrelease: copy trunk to community-testing-any

Added:
  python-jsonschema/repos/community-testing-any/
  python-jsonschema/repos/community-testing-any/PKGBUILD
(from rev 1259269, python-jsonschema/trunk/PKGBUILD)

--+
 PKGBUILD |   39 +++
 1 file changed, 39 insertions(+)

Copied: python-jsonschema/repos/community-testing-any/PKGBUILD (from rev 
1259269, python-jsonschema/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2022-07-31 10:30:33 UTC (rev 1259270)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan 
+# Contributor: Daniel Wallace 
+# Contributor: Bogdan Szczurek 
+# Contributor: Ismo Toijala 
+
+pkgname=python-jsonschema
+pkgver=4.9.0
+pkgrel=1
+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-rfc3987' 'python-jsonpointer' 'python-typing_extensions' 
'python-webcolors')
+makedepends=('python-build' 'python-installer' 'python-hatchling' 
'python-hatch-vcs')
+checkdepends=('python-twisted' 'python-idna' 'python-jsonpointer' 
'python-strict-rfc3339'
+  'python-rfc3987' 'python-webcolors' 'python-pip')
+source=("$pkgname-$pkgver.tar.bz2::https://github.com/Julian/jsonschema/archive/v$pkgver.tar.gz;)
+sha512sums=('0ce28e0211651c8a7b1c923157c395888dd165f635f848db65c243def2f6bd921f2a21f69c3f7d2ceee6d6ae74d5272f9cac4ec243172d35da31908285dd61c5')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd jsonschema-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd jsonschema-$pkgver
+  python -m installer --destdir="$PWD/tmp_install" dist/*.whl
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages" \
+JSON_SCHEMA_TEST_SUITE=json trial jsonschema
+  python -m doctest README.rst
+}
+
+package() {
+  cd jsonschema-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -D -m644 json/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



[arch-commits] Commit in python-jsonschema/repos (2 files)

2021-11-30 Thread Felix Yan via arch-commits
Date: Tuesday, November 30, 2021 @ 22:33:20
  Author: felixonmars
Revision: 1059063

archrelease: copy trunk to community-staging-any

Added:
  python-jsonschema/repos/community-staging-any/
  python-jsonschema/repos/community-staging-any/PKGBUILD
(from rev 1059062, python-jsonschema/trunk/PKGBUILD)

--+
 PKGBUILD |   45 +
 1 file changed, 45 insertions(+)

Copied: python-jsonschema/repos/community-staging-any/PKGBUILD (from rev 
1059062, python-jsonschema/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2021-11-30 22:33:20 UTC (rev 1059063)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan 
+# Contributor: Daniel Wallace 
+# Contributor: Bogdan Szczurek 
+# Contributor: Ismo Toijala 
+
+pkgname=python-jsonschema
+pkgver=3.2.0
+pkgrel=5
+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;
+
$pkgname-webcolors.patch::https://github.com/Julian/jsonschema/commit/09595a50f507.patch)
+sha512sums=('a575e9e7b0668220854e7ae45f2afd433643c3f0bfeb9769413cfc072ae01513a8d97bddbb6317f42348e09081e72bbad801d00ee5e3c0ac840bd19e934955cd'
+
'31fac0a4ea816660cd815ba28578e8b80e69e884ec9a450a6bf582e7c311036025927239a72cac2b667547ce2c5088b310f006ecce88a2c926fa3915780b7dac')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+prepare() {
+  cd jsonschema-$pkgver
+  patch -Np1 -i ../$pkgname-webcolors.patch
+}
+
+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.10/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
+}