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

Filipe Laíns ffy00 at archlinux.org
Fri Aug 17 19:53:11 UTC 2018


    Date: Friday, August 17, 2018 @ 19:53:11
  Author: ffy00
Revision: 372554

archrelease: copy trunk to community-any

Added:
  python-pypubsub/repos/community-any/
  python-pypubsub/repos/community-any/PKGBUILD
    (from rev 372553, python-pypubsub/trunk/PKGBUILD)

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

Copied: python-pypubsub/repos/community-any/PKGBUILD (from rev 372553, python-pypubsub/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2018-08-17 19:53:11 UTC (rev 372554)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgname=python-pypubsub
+_pkgname=${pkgname#python-}
+pkgver=4.0.0
+pkgrel=1
+pkgdesc="Python publish-subcribe library"
+arch=('any')
+url="https://github.com/schollii/pypubsub"
+license=('BSD')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-pytest-asyncio')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('d5759d0b359dac66819251be61c58958fcfc9948e68faedb5f7f2e5a5919bcbbabf5556867c881c3db5f9069b6d6b9b6827e6331dd5f900c329e1e80d1f0044d')
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver/tests/suite
+
+  PYTHONPATH=$PWD/../../src python -m pytest
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir"  --optimize=1 --skip-build
+}



More information about the arch-commits mailing list