[arch-commits] Commit in python-aiohttp/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 9 17:07:32 UTC 2020
Date: Monday, November 9, 2020 @ 17:07:32
Author: foutrelis
Revision: 747775
archrelease: copy trunk to community-staging-x86_64
Added:
python-aiohttp/repos/community-staging-x86_64/
python-aiohttp/repos/community-staging-x86_64/PKGBUILD
(from rev 747774, python-aiohttp/trunk/PKGBUILD)
----------+
PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
Copied: python-aiohttp/repos/community-staging-x86_64/PKGBUILD (from rev 747774, python-aiohttp/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-11-09 17:07:32 UTC (rev 747775)
@@ -0,0 +1,58 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Philipp A. <flying-sheep at web.de>
+
+_pkgname=aiohttp
+pkgname=python-aiohttp
+_gitcommit=6a5ab96bd9cb404b4abfd5160fe8f34a29d941e5
+pkgver=3.6.2
+pkgrel=3
+pkgdesc='HTTP client/server for asyncio'
+url='https://aiohttp.readthedocs.io'
+arch=('x86_64')
+license=('Apache')
+depends=('python' 'python-chardet' 'python-multidict' 'python-async-timeout'
+ 'python-yarl' 'python-attrs')
+makedepends=('cython' 'python-setuptools' 'git')
+checkdepends=('python-pytest' 'python-pytest-runner' 'python-pytest-mock'
+ 'python-pytest-timeout' 'python-async_generator' 'python-brotlipy'
+ 'python-pytest-xdist' 'python-pytest-forked' 'python-pytest-cov'
+ 'python-trustme' 'python-freezegun' 'gunicorn')
+optdepends=('gunicorn: to deploy using Gunicorn'
+ 'python-aiodns: for fast DNS resolving'
+ 'python-cchardet: for faster encoding detection'
+ 'python-brotlipy: for Brotli transfer-encodings support')
+source=(${pkgname}::"git+https://github.com/aio-libs/aiohttp#commit=${_gitcommit}"
+ git+https://github.com/nodejs/http-parser)
+sha512sums=('SKIP'
+ 'SKIP')
+
+pkgver() {
+ cd ${pkgname}
+ git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd ${pkgname}
+ git submodule init
+ git config submodule."vendor/http-parser".url "${srcdir}/http-parser"
+ git submodule update --recursive
+ sed 's|.install-cython ||' -i Makefile
+}
+
+build() {
+ cd ${pkgname}
+ make cythonize
+ python setup.py build
+}
+
+check() {
+ cd ${pkgname}
+ python setup.py test
+}
+
+package() {
+ cd ${pkgname}
+ python setup.py install --root="${pkgdir}" -O1 --skip-build
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list