[arch-commits] Commit in python-backcall/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 9 15:43:30 UTC 2020
Date: Monday, November 9, 2020 @ 15:43:29
Author: felixonmars
Revision: 747109
archrelease: copy trunk to community-staging-any
Added:
python-backcall/repos/community-staging-any/
python-backcall/repos/community-staging-any/PKGBUILD
(from rev 747108, python-backcall/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-backcall/repos/community-staging-any/PKGBUILD (from rev 747108, python-backcall/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 15:43:29 UTC (rev 747109)
@@ -0,0 +1,34 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+_name=backcall
+pkgname=python-backcall
+pkgver=0.2.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=('5cbdbf27be5e7cfadb448baf0aa95508f91f2bbc6c6437cd9cd06e2a4c215e1e')
+
+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
+ install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list