[arch-commits] Commit in python-jschema-to-python/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Nov 30 21:42:29 UTC 2021
Date: Tuesday, November 30, 2021 @ 21:42:29
Author: felixonmars
Revision: 1058946
archrelease: copy trunk to community-staging-any
Added:
python-jschema-to-python/repos/community-staging-any/
python-jschema-to-python/repos/community-staging-any/PKGBUILD
(from rev 1058942, python-jschema-to-python/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-jschema-to-python/repos/community-staging-any/PKGBUILD (from rev 1058942, python-jschema-to-python/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-11-30 21:42:29 UTC (rev 1058946)
@@ -0,0 +1,31 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-jschema-to-python
+pkgver=1.2.3
+pkgrel=2
+pkgdesc='Generate source code for a set of Python classes from a JSON schema'
+arch=(any)
+url='https://github.com/microsoft/jschema-to-python'
+license=(MIT)
+depends=(python-attrs python-jsonpickle python-pbr)
+checkdepends=(python-pytest)
+source=(https://github.com/microsoft/jschema-to-python/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('bd21ab2f541fdae809bdfd40d1f718e6bd4ee43c92eea0c99956df20a8d877d6')
+
+export PBR_VERSION=$pkgver
+
+build() {
+ cd jschema-to-python-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd jschema-to-python-$pkgver
+ pytest
+}
+
+package() {
+ cd jschema-to-python-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}
More information about the arch-commits
mailing list