[arch-commits] Commit in python-nest-asyncio/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon May 31 16:48:14 UTC 2021
Date: Monday, May 31, 2021 @ 16:48:14
Author: felixonmars
Revision: 952820
archrelease: copy trunk to community-any
Added:
python-nest-asyncio/repos/community-any/
python-nest-asyncio/repos/community-any/PKGBUILD
(from rev 952819, python-nest-asyncio/trunk/PKGBUILD)
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Copied: python-nest-asyncio/repos/community-any/PKGBUILD (from rev 952819, python-nest-asyncio/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2021-05-31 16:48:14 UTC (rev 952820)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-nest-asyncio
+pkgver=1.5.1
+pkgrel=1
+pkgdesc="Patch asyncio to allow nested event loops"
+url="https://github.com/erdewit/nest_asyncio"
+license=('BSD')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+source=("https://github.com/erdewit/nest_asyncio/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('e36750a6a77b269cbfc6f8926a4ddf1ada507f15ea50689b13f7e0bd09c1901d299cdc7593e640b2abd6d36c1d093d2befb23822f9c58d1961aab05cb213cb8d')
+
+build() {
+ cd nest_asyncio-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd nest_asyncio-$pkgver
+ PYTHONPATH="$PWD/build/lib" python tests/nest_test.py
+}
+
+package() {
+ cd nest_asyncio-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list