[arch-commits] Commit in (4 files)

Felix Yan felixonmars at gemini.archlinux.org
Sat Sep 3 15:34:00 UTC 2022


    Date: Saturday, September 3, 2022 @ 15:34:00
  Author: felixonmars
Revision: 1292597

addpkg: python-jsonschema-spec 0.1.1-1

Added:
  python-jsonschema-spec/
  python-jsonschema-spec/repos/
  python-jsonschema-spec/trunk/
  python-jsonschema-spec/trunk/PKGBUILD

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

Added: python-jsonschema-spec/trunk/PKGBUILD
===================================================================
--- python-jsonschema-spec/trunk/PKGBUILD	                        (rev 0)
+++ python-jsonschema-spec/trunk/PKGBUILD	2022-09-03 15:34:00 UTC (rev 1292597)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-jsonschema-spec
+pkgver=0.1.1
+pkgrel=1
+pkgdesc="JSONSchema Spec with object-oriented paths"
+url="https://github.com/p1c2u/jsonschema-spec"
+license=('Apache')
+arch=('any')
+depends=('python-jsonschema' 'python-pathable' 'python-yaml' 'python-typing_extensions')
+makedepends=('python-build' 'python-installer' 'python-poetry-core')
+checkdepends=('python-pytest')
+source=("https://github.com/p1c2u/jsonschema-spec/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('b1bdd03c6fc022877d0801d859abe0dd19e066afe2a1eab6c650a8741a50473e74945ddde429508e5dccf379a84b25fbd60c49fdc310aa770bed52b63e60e397')
+
+prepare() {
+  cd jsonschema-spec-$pkgver
+  sed -i '/--cov/d' pyproject.toml
+}
+
+build() {
+  cd jsonschema-spec-$pkgver
+  python -m build -wn
+}
+
+check() {
+  cd jsonschema-spec-$pkgver
+  PYTHONPATH="$PWD" pytest
+}
+
+package() {
+  cd jsonschema-spec-$pkgver
+  python -m installer -d "$pkgdir" dist/*.whl
+}



More information about the arch-commits mailing list