[arch-commits] Commit in python-pypubsub/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Thu Nov 12 18:09:49 UTC 2020
Date: Thursday, November 12, 2020 @ 18:09:48
Author: foutrelis
Revision: 752969
archrelease: copy trunk to community-staging-any
Added:
python-pypubsub/repos/community-staging-any/
python-pypubsub/repos/community-staging-any/PKGBUILD
(from rev 752968, python-pypubsub/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: python-pypubsub/repos/community-staging-any/PKGBUILD (from rev 752968, python-pypubsub/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-12 18:09:48 UTC (rev 752969)
@@ -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=3
+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