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

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 9 16:26:54 UTC 2020


    Date: Monday, November 9, 2020 @ 16:26:54
  Author: foutrelis
Revision: 747501

archrelease: copy trunk to community-staging-x86_64

Added:
  python-ubjson/repos/community-staging-x86_64/
  python-ubjson/repos/community-staging-x86_64/PKGBUILD
    (from rev 747499, python-ubjson/trunk/PKGBUILD)

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

Copied: python-ubjson/repos/community-staging-x86_64/PKGBUILD (from rev 747499, python-ubjson/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-09 16:26:54 UTC (rev 747501)
@@ -0,0 +1,33 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-ubjson
+pkgver=0.16.1
+pkgrel=2
+pkgdesc='Universal Binary JSON draft-12 serializer for Python'
+arch=(x86_64)
+url='https://github.com/Iotic-Labs/py-ubjson'
+license=(Apache)
+makedepends=(python-setuptools)
+depends=(python)
+source=("https://files.pythonhosted.org/packages/source/p/py-ubjson/py-ubjson-$pkgver.tar.gz"{,.asc})
+sha256sums=('b9bfb8695a1c7e3632e800fb83c943bf67ed45ddd87cd0344851610c69a5a482'
+            'SKIP')
+validpgpkeys=(
+  'A262040D27F5F4700D097A02CF651F44EF65072E'  # Iotic Labs Ltd (Software release signing key) <info at iotic-labs.com>
+)
+
+build() {
+  cd py-ubjson-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd py-ubjson-$pkgver
+  pyver=$(python -c "import sys; print('{}.{}'.format(*sys.version_info[:2]))")
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-$pyver" python -m unittest discover -v test
+}
+
+package() {
+  cd py-ubjson-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}



More information about the arch-commits mailing list