git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #53761 from dotlambda/aiohttp-3.5.2

python3.pkgs.aiohttp: 3.4.4 -> 3.5.2

commit3f3fe76fecccfaeac496f32d69f68a10a6abc547 authorRobert Schütz <rschuetz17@gmail.com> dateThu 10 Jan 2019, 18:02 (8 years ago) parent0e5c70ee56f76f
3 files changed+45−48
pkgs/applications/networking/gns3/server.nix+28−36 pkgs/development/python-modules/aiohttp/default.nix+15−11 pkgs/servers/home-assistant/appdaemon.nix+2−1
pkgs/applications/networking/gns3/server.nix+28−36
@@ -1,63 +1,54 @@
11{ stable, branch, version, sha256Hash }:
22
3−{ stdenv, python36Packages, fetchFromGitHub, fetchurl }:
3+{ stdenv, python36, fetchFromGitHub }:
44
55let
6− pythonPackages = python36Packages;
7− async-timeout = pythonPackages.async-timeout.overrideAttrs
8− (oldAttrs:
9− rec {
10− pname = "async-timeout";
6+ python = python36.override {
7+ packageOverrides = self: super: {
8+ async-timeout = super.async-timeout.overridePythonAttrs (oldAttrs: rec {
119 version = "2.0.1";
12− src = pythonPackages.fetchPypi {
13− inherit pname version;
10+ src = oldAttrs.src.override {
11+ inherit version;
1412 sha256 = "1l3kg062m02mph6rf9rdv8r5c5n356clxa6b6mrn0i77vk9g9kq0";
1513 };
1614 });
17− aiohttp = pythonPackages.aiohttp.overrideAttrs
18− (oldAttrs:
19− rec {
20− pname = "aiohttp";
15+ aiohttp = super.aiohttp.overridePythonAttrs (oldAttrs: rec {
2116 version = "2.3.10";
22− src = pythonPackages.fetchPypi {
23− inherit pname version;
17+ src = oldAttrs.src.override {
18+ inherit version;
2419 sha256 = "8adda6583ba438a4c70693374e10b60168663ffa6564c5c75d3c7a9055290964";
2520 };
26− propagatedBuildInputs = [ async-timeout ]
27− ++ (with pythonPackages; [ attrs chardet multidict yarl idna-ssl ]);
21+ propagatedBuildInputs = with self; [ async-timeout attrs chardet multidict yarl idna-ssl ];
22+ doCheck = false;
2823 });
29− aiohttp-cors = pythonPackages.aiohttp-cors.overrideAttrs
30− (oldAttrs:
31− rec {
32− pname = "aiohttp-cors";
24+ aiohttp-cors = super.aiohttp-cors.overridePythonAttrs (oldAttrs: rec {
3325 version = "0.5.3";
34− name = "${pname}-${version}";
35− src = pythonPackages.fetchPypi {
36− inherit pname version;
26+ src = oldAttrs.src.override {
27+ inherit version;
3728 sha256 = "11b51mhr7wjfiikvj3nc5s8c7miin2zdhl3yrzcga4mbpkj892in";
3829 };
39− propagatedBuildInputs = [ aiohttp ]
40− ++ stdenv.lib.optional
41− (pythonPackages.pythonOlder "3.5")
42− pythonPackages.typing;
30+ propagatedBuildInputs = with self; [ aiohttp ]
31+ ++ stdenv.lib.optional (pythonOlder "3.5") typing;
4332 });
44−in pythonPackages.buildPythonPackage rec {
45− name = "${pname}-${version}";
33+ };
34+ };
35+
36+in python.pkgs.buildPythonPackage {
4637 pname = "gns3-server";
38+ inherit version;
4739
4840 src = fetchFromGitHub {
4941 owner = "GNS3";
50− repo = pname;
42+ repo = "gns3-server";
5143 rev = "v${version}";
5244 sha256 = sha256Hash;
5345 };
5446
55− propagatedBuildInputs = [ aiohttp-cors ]
56− ++ (with pythonPackages; [
57− yarl aiohttp multidict
58− jinja2 psutil zipstream raven jsonschema typing
59− (pythonPackages.callPackage ../../../development/python-modules/prompt_toolkit/1.nix {})
60− ]);
47+ propagatedBuildInputs = with python.pkgs; [
48+ aiohttp-cors yarl aiohttp multidict
49+ jinja2 psutil zipstream raven jsonschema typing
50+ (python.pkgs.callPackage ../../../development/python-modules/prompt_toolkit/1.nix {})
51+ ];
6152
6253 # Requires network access
6354 doCheck = false;
@@ -65,6 +56,7 @@ in pythonPackages.buildPythonPackage rec {
6556 postInstall = ''
6657 rm $out/bin/gns3loopback # For Windows only
6758 '';
59+
6860 meta = with stdenv.lib; {
6961 description = "Graphical Network Simulator 3 server (${branch} release)";
7062 longDescription = ''
pkgs/development/python-modules/aiohttp/default.nix+15−11
@@ -8,33 +8,37 @@
88, async-timeout
99, yarl
1010, idna-ssl
11+, typing-extensions
12+, pytestrunner
1113, pytest
1214, gunicorn
13−, pytest-mock
14−, async_generator
15−, pytestrunner
1615, pytest-timeout
16+, async_generator
17+, pytest_xdist
18+, pytestcov
19+, pytest-mock
20+, trustme
21+, brotlipy
1722}:
1823
1924buildPythonPackage rec {
2025 pname = "aiohttp";
21− version = "3.4.4";
26+ version = "3.5.2";
2227
2328 src = fetchPypi {
2429 inherit pname version;
25− sha256 = "1ykm6kdjkrg556j0zd7dx2l1rsrbh0d9g27ivr6dmaahz9pyrbsi";
30+ sha256 = "3d851b15e615c0ad619de0990ab94c9721c335aebb58d160bf77a4af963c6b50";
2631 };
2732
2833 disabled = pythonOlder "3.5";
2934
30− checkInputs = [ pytest gunicorn pytest-mock async_generator pytestrunner pytest-timeout ];
35+ checkInputs = [
36+ pytestrunner pytest gunicorn pytest-timeout async_generator pytest_xdist
37+ pytest-mock pytestcov trustme brotlipy
38+ ];
3139
3240 propagatedBuildInputs = [ attrs chardet multidict async-timeout yarl ]
33− ++ lib.optional (pythonOlder "3.7") idna-ssl;
34−
35−
36− # Several test failures. Need to be looked into.
37− doCheck = false;
41+ ++ lib.optionals (pythonOlder "3.7") [ idna-ssl typing-extensions ];
3842
3943 meta = with lib; {
4044 description = "Asynchronous HTTP Client/Server for Python and asyncio";
pkgs/servers/home-assistant/appdaemon.nix+2−1
@@ -11,7 +11,8 @@ let
1111 sha256 = "8adda6583ba438a4c70693374e10b60168663ffa6564c5c75d3c7a9055290964";
1212 };
1313 # TODO: remove after pinning aiohttp to a newer version
14− propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [ self.idna-ssl ];
14+ propagatedBuildInputs = with self; [ chardet multidict async-timeout yarl idna-ssl ];
15+ doCheck = false;
1516 });
1617
1718 yarl = super.yarl.overridePythonAttrs (oldAttrs: rec {