[arch-commits] Commit in (4 files)

Eli Schwartz eschwartz at archlinux.org
Fri Apr 16 03:29:08 UTC 2021


    Date: Friday, April 16, 2021 @ 03:29:08
  Author: eschwartz
Revision: 919268

addpkg: python-bcj-cffi 0.5.1-1

new dependency for future versions of the py7zr module

Added:
  python-bcj-cffi/
  python-bcj-cffi/repos/
  python-bcj-cffi/trunk/
  python-bcj-cffi/trunk/PKGBUILD

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

Added: python-bcj-cffi/trunk/PKGBUILD
===================================================================
--- python-bcj-cffi/trunk/PKGBUILD	                        (rev 0)
+++ python-bcj-cffi/trunk/PKGBUILD	2021-04-16 03:29:08 UTC (rev 919268)
@@ -0,0 +1,42 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=bcj-cffi
+pkgname=python-bcj-cffi
+pkgver=0.5.1
+pkgrel=1
+pkgdesc="BCJ(Branch-Call-Jump) filter for python"
+arch=('x86_64')
+url="https://github.com/miurahr/${_pkgname}"
+license=('LGPL')
+depends=('python-cffi')
+makedepends=('python-setuptools-scm')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('2b4a5d1252e72bea5a5eb1e51650435825299b0e87c25ddfd21a1623514fd0cc')
+b2sums=('f31161555597c477b052ad42ac42642b97788c3eb6a22cc48872429456a8665c9b810910a2a1f84c99a40135c17f7bbe0829115643f7d495d2d52cfc6c7a50b5')
+
+prepare() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    # thou shalt not force coverage reports on innocent unittest users
+    sed -i '/^addopts/d' tox.ini
+}
+
+build(){
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python setup.py build
+}
+
+check() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    pythonpaths=("$PWD/build/lib.linux-$CARCH"-3*)
+    PYTHONPATH="${pythonpaths[0]}" pytest -rsx
+}
+
+package() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}



More information about the arch-commits mailing list