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

Felix Yan felixonmars at gemini.archlinux.org
Fri Dec 3 14:10:46 UTC 2021


    Date: Friday, December 3, 2021 @ 14:10:45
  Author: felixonmars
Revision: 1064792

archrelease: copy trunk to community-staging-any

Added:
  python-nest-asyncio/repos/community-staging-any/
  python-nest-asyncio/repos/community-staging-any/PKGBUILD
    (from rev 1064791, python-nest-asyncio/trunk/PKGBUILD)

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

Copied: python-nest-asyncio/repos/community-staging-any/PKGBUILD (from rev 1064791, python-nest-asyncio/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-03 14:10:45 UTC (rev 1064792)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-nest-asyncio
+pkgver=1.5.4
+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=('96050b450ce2dc1d9cb9f966fe1e971ce48652524f4d2d75bf2cb37755feb29d28b9661bd82fd1016781d6c79c027de04c516f5faccebf1040e398ea9998c87e')
+
+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