[arch-commits] Commit in python-backcall/repos (community-any community-any/PKGBUILD)

Daniel M. Capella polyzen at archlinux.org
Mon Mar 2 23:47:34 UTC 2020


    Date: Monday, March 2, 2020 @ 23:47:33
  Author: polyzen
Revision: 589323

archrelease: copy trunk to community-any

Added:
  python-backcall/repos/community-any/
  python-backcall/repos/community-any/PKGBUILD
    (from rev 589322, python-backcall/trunk/PKGBUILD)

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

Copied: python-backcall/repos/community-any/PKGBUILD (from rev 589322, python-backcall/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-03-02 23:47:33 UTC (rev 589323)
@@ -0,0 +1,33 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+_name=backcall
+pkgname=python-backcall
+pkgver=0.1.0
+pkgrel=2
+pkgdesc='Backwards compatible callback APIs'
+arch=('any')
+url=https://github.com/takluyver/backcall
+license=('BSD')
+depends=('python')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('38ecd85be2c1e78f77fd91700c76e14667dc21e2713b63876c0eb901196e01e4')
+
+build() {
+  cd $_name-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd $_name-$pkgver
+  mkdir -p temp
+  local sitepackages=$(python -c "import site; print(site.getsitepackages()[0])")
+  python setup.py install --skip-build --root=temp
+  PATH="$PWD/temp/usr/bin:$PATH" PYTHONPATH="$PWD/temp/$sitepackages" python tests/test_callback_prototypes.py
+}
+
+package() {
+  cd $_name-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list