summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO13
-rw-r--r--.gitignore1
-rw-r--r--LICENSE21
-rw-r--r--PKGBUILD23
4 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9ecbb707a44
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = python-asyncio-contextmanager
+ pkgdesc = Decorator that turns async generator functions into async context managers.
+ pkgver = 1.0.1
+ pkgrel = 1
+ url = https://github.com/sashgorokhov/asyncio-contextmanager
+ arch = any
+ license = MIT
+ makedepends = python-setuptools
+ source = https://files.pythonhosted.org/packages/source/a/asyncio-contextmanager/asyncio-contextmanager-1.0.1.tar.gz
+ md5sums = c8ce0047d83dfcb6654debd8a434d7b7
+
+pkgname = python-asyncio-contextmanager
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..f59ec20aabf
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+* \ No newline at end of file
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 00000000000..b2656cefe9d
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2017 Alexander Gorokhov
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..340d7e29b33
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Gustavo Jasso <gustavo at jasso dot info>
+pkgname='python-asyncio-contextmanager'
+_name=${pkgname#python-}
+pkgdesc="Decorator that turns async generator functions into async context managers."
+pkgver=1.0.1
+pkgrel=1
+url="https://github.com/sashgorokhov/asyncio-contextmanager"
+arch=('any')
+license=('MIT')
+makedepends=('python-setuptools')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+md5sums=('c8ce0047d83dfcb6654debd8a434d7b7')
+
+build() {
+ cd "$srcdir/$_name-$pkgver"
+ python setup.py build
+}
+
+package() {
+ install -Dm644 "$startdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ cd "$srcdir/$_name-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}