[arch-commits] Commit in python-xmlschema/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sat Oct 26 20:49:41 UTC 2019


    Date: Saturday, October 26, 2019 @ 20:49:40
  Author: felixonmars
Revision: 520625

archrelease: copy trunk to community-staging-any

Added:
  python-xmlschema/repos/community-staging-any/
  python-xmlschema/repos/community-staging-any/PKGBUILD
    (from rev 520623, python-xmlschema/trunk/PKGBUILD)

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

Copied: python-xmlschema/repos/community-staging-any/PKGBUILD (from rev 520623, python-xmlschema/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 20:49:40 UTC (rev 520625)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-xmlschema
+pkgver=1.0.14
+pkgrel=2
+pkgdesc="An XML Schema validator and decoder"
+url="https://github.com/sissaschool/xmlschema"
+license=('MIT')
+arch=('any')
+depends=('python-elementpath')
+makedepends=('python-setuptools')
+checkdepends=('python-lxml')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/sissaschool/xmlschema/archive/v$pkgver.tar.gz")
+sha512sums=('51180516d3b8b07f86b52a8114c21546b399614d8012b909129226438a9f945568019997a6834bbb00f06f5864ff8da4e7f24adb1f7fab0e84f34d18dcd80972')
+
+prepare() {
+  sed -i 's/~=/>=/' xmlschema-$pkgver/setup.py
+}
+
+build() {
+  cd xmlschema-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd xmlschema-$pkgver
+  python -c "import xmlschema.codepoints; xmlschema.codepoints.save_unicode_categories()"
+  cp xmlschema/unicode_categories.json build/lib/xmlschema/
+  PYTHONPATH="$PWD/build/lib" python xmlschema/tests/test_all.py
+}
+
+package() {
+  cd xmlschema-$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