[arch-commits] Commit in (4 files)

Chih-Hsuan Yen yan12125 at archlinux.org
Sat Mar 30 10:13:26 UTC 2019


    Date: Saturday, March 30, 2019 @ 10:13:26
  Author: yan12125
Revision: 446258

python-cbor: new pkg, checkdepends of python-autobahn

Added:
  python-cbor/
  python-cbor/repos/
  python-cbor/trunk/
  python-cbor/trunk/PKGBUILD

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

Added: python-cbor/trunk/PKGBUILD
===================================================================
--- python-cbor/trunk/PKGBUILD	                        (rev 0)
+++ python-cbor/trunk/PKGBUILD	2019-03-30 10:13:26 UTC (rev 446258)
@@ -0,0 +1,36 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-cbor
+pkgver=1.0.0
+pkgrel=1
+# The commit that bumps cbor/VERSION.py to 1.0.0
+_commit=b3af679e7cf3e12d50acb83c3c591fc5db9a658d
+pkgdesc='CBOR rfc7049 for Python'
+arch=(x86_64)
+url='https://github.com/brianolson/cbor_py'
+license=(Apache)
+makedepends=(python-setuptools)
+depends=(python)
+checkdepends=(python-pytest)
+source=("$pkgname-$pkgver.tar.gz"::"https://github.com/brianolson/cbor_py/archive/$_commit.tar.gz")
+sha256sums=('d9211361e37363dfbf54fcb21d23e610aa25679609044844305c2ee5b80b78d9')
+
+prepare() {
+  cd cbor_py-$_commit
+  sed -i 's#logger.warn(#logger.warning(#' cbor/tests/*.py
+}
+
+build() {
+  cd cbor_py-$_commit
+  python setup.py build
+}
+
+check() {
+  cd cbor_py-$_commit
+  PYTHONPATH=build/lib.linux-$CARCH-3.7 pytest -k 'not test_sortkeys'
+}
+
+package() {
+  cd cbor_py-$_commit
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}



More information about the arch-commits mailing list