[arch-commits] Commit in python-asgiref/repos (extra-any extra-any/PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Thu Jan 9 20:49:55 UTC 2020
Date: Thursday, January 9, 2020 @ 20:49:55
Author: jelle
Revision: 373096
archrelease: copy trunk to extra-any
Added:
python-asgiref/repos/extra-any/
python-asgiref/repos/extra-any/PKGBUILD
(from rev 373095, python-asgiref/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-asgiref/repos/extra-any/PKGBUILD (from rev 373095, python-asgiref/trunk/PKGBUILD)
===================================================================
--- extra-any/PKGBUILD (rev 0)
+++ extra-any/PKGBUILD 2020-01-09 20:49:55 UTC (rev 373096)
@@ -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