[arch-commits] Commit in python-jsonschema-spec/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Sat Sep 3 15:34:23 UTC 2022
Date: Saturday, September 3, 2022 @ 15:34:22
Author: felixonmars
Revision: 1292598
archrelease: copy trunk to community-any
Added:
python-jsonschema-spec/repos/community-any/
python-jsonschema-spec/repos/community-any/PKGBUILD
(from rev 1292597, python-jsonschema-spec/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-jsonschema-spec/repos/community-any/PKGBUILD (from rev 1292597, python-jsonschema-spec/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2022-09-03 15:34:22 UTC (rev 1292598)
@@ -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