mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-09 21:43:13 +02:00
python3-aiohttp: include upstream patch to support new python3-chardet
This commit is contained in:
parent
3f3eb35732
commit
dc7fb7df60
3 changed files with 35 additions and 4 deletions
30
srcpkgs/python3-aiohttp/patches/chardet-version.patch
Normal file
30
srcpkgs/python3-aiohttp/patches/chardet-version.patch
Normal 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"',
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python3-aiohttp'
|
# Template file for 'python3-aiohttp'
|
||||||
pkgname=python3-aiohttp
|
pkgname=python3-aiohttp
|
||||||
version=3.7.3
|
version=3.7.3
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="aiohttp-${version}"
|
wrksrc="aiohttp-${version}"
|
||||||
build_style=python3-module
|
build_style=python3-module
|
||||||
hostmakedepends="python3-setuptools"
|
hostmakedepends="python3-setuptools"
|
||||||
|
@ -15,8 +15,8 @@ homepage="https://aiohttp.readthedocs.io/"
|
||||||
distfiles="${PYPI_SITE}/a/aiohttp/aiohttp-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/a/aiohttp/aiohttp-${version}.tar.gz"
|
||||||
checksum=9c1a81af067e72261c9cbe33ea792893e83bc6aa987bfbd6fdc1e5e7b22777c4
|
checksum=9c1a81af067e72261c9cbe33ea792893e83bc6aa987bfbd6fdc1e5e7b22777c4
|
||||||
|
|
||||||
pre_build() {
|
post_patch() {
|
||||||
# use system http-parser
|
# use system http-parser
|
||||||
sed -i '/http_parser\.c/d' setup.py
|
vsed -i '/http_parser\.c/d' -i setup.py
|
||||||
sed -i '/http_parser\.h/s/".*\//"/' aiohttp/_cparser.pxd
|
vsed -i '/http_parser\.h/s/".*\//"/' -i aiohttp/_cparser.pxd
|
||||||
}
|
}
|
||||||
|
|
1
srcpkgs/python3-aiohttp/update
Normal file
1
srcpkgs/python3-aiohttp/update
Normal file
|
@ -0,0 +1 @@
|
||||||
|
pattern="aiohttp-\K[0-9.]+(?=\.tar\.gz)"
|
Loading…
Add table
Reference in a new issue