Date: Wednesday, April 5, 2023 @ 17:08:33
Author: felixonmars
Revision: 1437793
archrelease: copy trunk to community-staging-any
Added:
python-fastjsonschema/repos/community-staging-any/
python-fastjsonschema/repos/community-staging-any/PKGBUILD
(from rev 1437792, python-fastjsonschema/trunk/PKGBUILD)
----------+
PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
Copied: python-fastjsonschema/repos/community-staging-any/PKGBUILD (from rev
1437792, python-fastjsonschema/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-05 17:08:33 UTC (rev 1437793)
@@ -0,0 +1,48 @@
+# Maintainer: David Runge <[email protected]>
+
+_name=fastjsonschema
+pkgname=python-fastjsonschema
+_commit=4f11540d2e8f7c0aeae1230cdbc65a99f1b277c4 # refs/tags/v2.16.3
+pkgver=2.16.3
+pkgrel=2
+pkgdesc="Fast JSON schema validator for Python"
+arch=(any)
+url="https://github.com/horejsek/python-fastjsonschema"
+license=(BSD)
+depends=(python)
+makedepends=(git python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-pytest)
+# tests and additional assets not in sdist tarball:
https://github.com/horejsek/python-fastjsonschema/issues/138
+#
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+source=(
+ git+https://github.com/horejsek/python-fastjsonschema#commit=$_commit
+ git+https://github.com/json-schema-org/JSON-Schema-Test-Suite
+)
+sha512sums=('SKIP'
+ 'SKIP')
+b2sums=('SKIP'
+ 'SKIP')
+
+prepare() {
+ cd $pkgname
+ git submodule init
+ git config submodule.JSON-Schema-Test-Suite.url ../JSON-Schema-Test-Suite
+ git -c protocol.file.allow=always submodule update
+}
+
+build() {
+ cd $pkgname
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd $pkgname
+ pytest -vv -m "not benchmark"
+}
+
+package() {
+ cd $pkgname
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname"
+ install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}