python3-aiohttp: include upstream patch to support new python3-chardet

This commit is contained in:
Andrew J. Hesford 2020-12-17 11:10:49 -05:00
parent 3f3eb35732
commit dc7fb7df60
3 changed files with 35 additions and 4 deletions

View file

@ -0,0 +1,30 @@
From b0ed732d0a637e43c72bb1a777d02776cde37376 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Fri, 11 Dec 2020 10:24:17 +0200
Subject: [PATCH] Bump chardet from 3.0.4 to 4.0.0 (#5333)
Bumps [chardet](https://github.com/chardet/chardet) from 3.0.4 to 4.0.0.
- [Release notes](https://github.com/chardet/chardet/releases)
- [Commits](https://github.com/chardet/chardet/compare/3.0.4...4.0.0)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
---
requirements/base.txt | 2 +-
setup.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git setup.py setup.py
index a9edd5d0c8..54b548c7b4 100644
--- setup.py
+++ setup.py
@@ -66,7 +66,7 @@
install_requires = [
"attrs>=17.3.0",
- "chardet>=2.0,<4.0",
+ "chardet>=2.0,<5.0",
"multidict>=4.5,<7.0",
"async_timeout>=4.0a2,<5.0",
'asynctest==0.13.0; python_version<"3.8"',

View file

@ -1,7 +1,7 @@
# Template file for 'python3-aiohttp'
pkgname=python3-aiohttp
version=3.7.3
revision=1
revision=2
wrksrc="aiohttp-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
@ -15,8 +15,8 @@ homepage="https://aiohttp.readthedocs.io/"
distfiles="${PYPI_SITE}/a/aiohttp/aiohttp-${version}.tar.gz"
checksum=9c1a81af067e72261c9cbe33ea792893e83bc6aa987bfbd6fdc1e5e7b22777c4
pre_build() {
post_patch() {
# use system http-parser
sed -i '/http_parser\.c/d' setup.py
sed -i '/http_parser\.h/s/".*\//"/' aiohttp/_cparser.pxd
vsed -i '/http_parser\.c/d' -i setup.py
vsed -i '/http_parser\.h/s/".*\//"/' -i aiohttp/_cparser.pxd
}

View file

@ -0,0 +1 @@
pattern="aiohttp-\K[0-9.]+(?=\.tar\.gz)"