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

Felix Yan felixonmars at gemini.archlinux.org
Fri Dec 3 10:35:50 UTC 2021


    Date: Friday, December 3, 2021 @ 10:35:50
  Author: felixonmars
Revision: 1064742

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pypubsub/repos/community-staging-any/PKGBUILD (from rev 1064740, python-pypubsub/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-03 10:35:50 UTC (rev 1064742)
@@ -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=4
+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