mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
Merge pull request #145602 from dotlambda/aiohttp-3.8.0
This commit is contained in:
commit
ba58d00fed
|
@ -3,15 +3,22 @@
|
|||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, async-timeout
|
||||
# install_requires
|
||||
, attrs
|
||||
, chardet
|
||||
, idna-ssl
|
||||
, charset-normalizer
|
||||
, multidict
|
||||
, typing-extensions
|
||||
, async-timeout
|
||||
, yarl
|
||||
, frozenlist
|
||||
, aiosignal
|
||||
, aiodns
|
||||
, brotli
|
||||
, cchardet
|
||||
, asynctest
|
||||
, typing-extensions
|
||||
, idna-ssl
|
||||
# tests_require
|
||||
, async_generator
|
||||
, brotlipy
|
||||
, freezegun
|
||||
, gunicorn
|
||||
, pytest-mock
|
||||
|
@ -22,32 +29,39 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiohttp";
|
||||
version = "3.7.4.post0";
|
||||
version = "3.8.0";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "493d3299ebe5f5a7c66b9819eacdcfbbaaf1a8e84911ddffcdc48888497afecf";
|
||||
sha256 = "sha256-07GdjRg7z9aLJb7rq43DMIKC/iyj1uo8tM0QGzwnn40=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg --replace " --cov=aiohttp" ""
|
||||
sed -i '/--cov/d' setup.cfg
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
async-timeout
|
||||
attrs
|
||||
chardet
|
||||
charset-normalizer
|
||||
multidict
|
||||
typing-extensions
|
||||
async-timeout
|
||||
yarl
|
||||
typing-extensions
|
||||
frozenlist
|
||||
aiosignal
|
||||
aiodns
|
||||
brotli
|
||||
cchardet
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
asynctest
|
||||
typing-extensions
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
idna-ssl
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
async_generator
|
||||
brotlipy
|
||||
freezegun
|
||||
gunicorn
|
||||
pytest-mock
|
||||
|
@ -58,7 +72,9 @@ buildPythonPackage rec {
|
|||
|
||||
disabledTests = [
|
||||
# Disable tests that require network access
|
||||
"test_client_session_timeout_zero"
|
||||
"test_mark_formdata_as_processed"
|
||||
"test_requote_redirect_url_default"
|
||||
] ++ lib.optionals stdenv.is32bit [
|
||||
"test_cookiejar"
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
|
@ -66,6 +82,10 @@ buildPythonPackage rec {
|
|||
"test_close"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
"test_proxy_functional.py" # FIXME package proxy.py
|
||||
];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
# aiohttp in current folder shadows installed version
|
||||
|
|
|
@ -2,22 +2,27 @@
|
|||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, typing-extensions
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "async-timeout";
|
||||
version = "3.0.1";
|
||||
version = "4.0.1";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0c3c816a028d47f659d6ff5c745cb2acf1f966da1fe5c19c77a70282b25f4c5f";
|
||||
sha256 = "sha256-uTDLFho5BC+SIvbvtzATmch+6rOUcn7FQ3kko21u71E=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
# Circular dependency on aiohttp
|
||||
doCheck = false;
|
||||
|
||||
disabled = pythonOlder "3.4";
|
||||
|
||||
meta = {
|
||||
description = "Timeout context manager for asyncio programs";
|
||||
homepage = "https://github.com/aio-libs/async_timeout/";
|
||||
|
|
|
@ -11,11 +11,11 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "yarl";
|
||||
version = "1.7.0";
|
||||
version = "1.7.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8e7ebaf62e19c2feb097ffb7c94deb0f0c9fab52590784c8cd679d30ab009162";
|
||||
sha256 = "sha256-RTmbRtYMJTMnpGDpmFZ1IAn87l9dPICy98DK4cONVt0=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
|
|
@ -293,9 +293,7 @@ in {
|
|||
|
||||
aiohomekit = callPackage ../development/python-modules/aiohomekit { };
|
||||
|
||||
aiohttp = callPackage ../development/python-modules/aiohttp {
|
||||
pytestCheckHook = self.pytestCheckHook_6_1;
|
||||
};
|
||||
aiohttp = callPackage ../development/python-modules/aiohttp { };
|
||||
|
||||
aiohttp-cors = callPackage ../development/python-modules/aiohttp-cors { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue