[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Tue Jun 11 10:00:28 UTC 2019


    Date: Tuesday, June 11, 2019 @ 10:00:28
  Author: felixonmars
Revision: 480301

addpkg: python-jsonschema-objects 0.3.8-1

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

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

Added: python-jsonschema-objects/trunk/PKGBUILD
===================================================================
--- python-jsonschema-objects/trunk/PKGBUILD	                        (rev 0)
+++ python-jsonschema-objects/trunk/PKGBUILD	2019-06-11 10:00:28 UTC (rev 480301)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-jsonschema-objects
+pkgver=0.3.8
+pkgrel=1
+pkgdesc="Return the jsonschema-objects true value of an iterable"
+url="https://github.com/cwacek/python-jsonschema-objects"
+license=('MIT')
+arch=('any')
+depends=('python-inflection' 'python-markdown' 'python-jsonschema' 'python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-pytest-mock')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/cwacek/python-jsonschema-objects/archive/$pkgver.tar.gz")
+sha512sums=('a973db9d128d78f7941e6cc5e980320dc7c7930b5bba940fb2cb890af86d35206eede7adecef80dfe1970d06726bed1ffaf7532647492a0eed85c5553ee0595d')
+
+build() {
+  cd python-jsonschema-objects-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd python-jsonschema-objects-$pkgver
+  python setup.py pytest --addopts --doctest-glob='python_jsonschema_objects/*.md'
+}
+
+package() {
+  cd python-jsonschema-objects-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}


More information about the arch-commits mailing list