[arch-commits] Commit in python-pypubsub/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 4 06:28:22 UTC 2019


    Date: Monday, November 4, 2019 @ 06:28:22
  Author: felixonmars
Revision: 523402

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pypubsub/repos/community-staging-any/PKGBUILD (from rev 523401, python-pypubsub/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-11-04 06:28:22 UTC (rev 523402)
@@ -0,0 +1,36 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+# Contributor: Eli Schwartz <eschwartz at archlinux.org>
+
+pkgname=python-pypubsub
+_pkgname=${pkgname#python-}
+pkgver=4.0.3
+pkgrel=2
+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=('cf9aca44e91a5d0e5ecf6739deabf2980f9464395c89e3c5335c5248e47c570701e0534bb660c5005325a994d9f8e7f261f36bc8bea74cfc7eb760b73c572652')
+
+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
+
+  install -Dm 644 src/pubsub/LICENSE_BSD_Simple.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list