[arch-commits] Commit in (4 files)

Jelle van der Waa jelle at archlinux.org
Thu Jan 9 20:48:59 UTC 2020


    Date: Thursday, January 9, 2020 @ 20:48:58
  Author: jelle
Revision: 373095

Add new dependency of python-django

Added:
  python-asgiref/
  python-asgiref/repos/
  python-asgiref/trunk/
  python-asgiref/trunk/PKGBUILD

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

Added: python-asgiref/trunk/PKGBUILD
===================================================================
--- python-asgiref/trunk/PKGBUILD	                        (rev 0)
+++ python-asgiref/trunk/PKGBUILD	2020-01-09 20:48:58 UTC (rev 373095)
@@ -0,0 +1,31 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+pkgname=python-asgiref
+pkgver=3.2.3
+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=('7e06d934a7718bf3975acbf87780ba678957b87c7adc056f13b6215d610695a0')
+
+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