[arch-commits] Commit in python-asgiref/repos (community-any community-any/PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Wed Mar 18 21:40:04 UTC 2020
Date: Wednesday, March 18, 2020 @ 21:40:03
Author: jelle
Revision: 377882
archrelease: copy trunk to community-any
Added:
python-asgiref/repos/community-any/
python-asgiref/repos/community-any/PKGBUILD
(from rev 377881, python-asgiref/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-asgiref/repos/community-any/PKGBUILD (from rev 377881, python-asgiref/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2020-03-18 21:40:03 UTC (rev 377882)
@@ -0,0 +1,31 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+pkgname=python-asgiref
+pkgver=3.2.5
+pkgrel=1
+pkgdesc="Reference ASGI adapters and channel layers"
+arch=(any)
+url="http://github.com/django/asgiref"
+license=('BSD')
+makedepends=('python-setuptools')
+checkdepends=(python-pytest python-pytest-asyncio)
+depends=('python')
+source=("https://pypi.io/packages/source/a/asgiref/asgiref-${pkgver}.tar.gz")
+sha256sums=('c8f49dd3b42edcc51d09dd2eea8a92b3cfc987ff7e6486be734b4d0cbfd5d315')
+
+build() {
+ cd "asgiref-${pkgver}"
+ python setup.py build
+}
+
+check() {
+ cd "asgiref-${pkgver}"
+ PYTHONPATH=. pytest .
+}
+
+package() {
+ cd "asgiref-${pkgver}"
+ python setup.py install --root=${pkgdir} --optimize=1
+
+ install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list