[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Mon May 31 16:47:40 UTC 2021
Date: Monday, May 31, 2021 @ 16:47:39
Author: felixonmars
Revision: 952819
addpkg: python-nest-asyncio 1.5.1-1
Added:
python-nest-asyncio/
python-nest-asyncio/repos/
python-nest-asyncio/trunk/
python-nest-asyncio/trunk/PKGBUILD
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Added: python-nest-asyncio/trunk/PKGBUILD
===================================================================
--- python-nest-asyncio/trunk/PKGBUILD (rev 0)
+++ python-nest-asyncio/trunk/PKGBUILD 2021-05-31 16:47:39 UTC (rev 952819)
@@ -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