Date: Saturday, October 8, 2022 @ 22:03:00
  Author: grawlinson
Revision: 1324445

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |  126 +++++++++++++++++++++++++++++++++++++++++--------------------
 1 file changed, 86 insertions(+), 40 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-08 22:01:46 UTC (rev 1324444)
+++ PKGBUILD    2022-10-08 22:03:00 UTC (rev 1324445)
@@ -1,40 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-# Contributor: Daniel Wallace <danielwallace at gtmanfred.com>
-# Contributor: Bogdan Szczurek <[email protected]>
-# Contributor: Ismo Toijala <[email protected]>
-
-pkgname=python-jsonschema
-pkgver=4.16.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-pyrsistent')
-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-pip' 'python-rfc3987' 'python-webcolors')
-source=("$pkgname-$pkgver.tar.bz2::https://github.com/Julian/jsonschema/archive/v$pkgver.tar.gz";)
-sha512sums=('02815455d9e145206db002a16769085d7ba705ada32342d890fb2b88a03ec17a8420449354b8b320eee3c55d34a12ad55fe7876d6eaa895fba64db47aad485fe')
-
-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 -Dm644 json/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-}

Copied: python-jsonschema/repos/community-any/PKGBUILD (from rev 1324444, 
python-jsonschema/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-10-08 22:03:00 UTC (rev 1324445)
@@ -0,0 +1,86 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Felix Yan <[email protected]>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred.com>
+# Contributor: Bogdan Szczurek <[email protected]>
+# Contributor: Ismo Toijala <[email protected]>
+
+pkgname=python-jsonschema
+pkgver=4.16.0
+pkgrel=2
+pkgdesc='An implementation of JSON Schema validation for Python'
+arch=('any')
+url='https://github.com/python-jsonschema/jsonschema'
+license=('MIT')
+depends=(
+  'python'
+  'python-attrs'
+  'python-pyrsistent'
+  'python-typing_extensions'
+)
+makedepends=(
+  'git'
+  'python-build'
+  'python-installer'
+  'python-wheel'
+  'python-hatchling'
+  'python-hatch-vcs'
+  'python-hatch-fancy-pypi-readme'
+)
+checkdepends=(
+  'python-pip'
+  'python-twisted'
+  'python-isoduration'
+  'python-fqdn'
+  'python-idna'
+  'python-jsonpointer'
+  'python-rfc3339-validator'
+  'python-rfc3987'
+  'python-uri-template'
+  'python-webcolors'
+)
+optdepends=(
+  'python-isoduration: check duration format'
+  'python-fqdn: check hostname format'
+  'python-idna: check idn-hostname format'
+  'python-jsonpointer: check json-pointer & relative-json-pointer format'
+  'python-rfc3339-validator: check date-time format'
+  'python-rfc3987: for iri, iri-reference, uri & uri-reference format'
+  'python-uri-template: for uri-template format'
+  'python-webcolors: check color format'
+)
+_commit='ee024ffc61bee56b25e816f489d7365fe1445c6d'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+build() {
+  cd "$pkgname"
+
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd "$pkgname"
+
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+
+  # install to temporary directory
+  python -m installer --destdir="$PWD/tmp_install" dist/*.whl
+
+  PYTHONPATH="$PWD/tmp_install$site_packages" \
+    JSON_SCHEMA_TEST_SUITE=json trial jsonschema
+}
+
+package() {
+  cd "$pkgname"
+
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  # license
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" json/LICENSE
+}

Reply via email to