@@ -342,6 +342,29 @@ in modules // {
342342 };
343343 };
344344
345+ aiohttp = buildPythonPackage rec {
346+ name = "aiohttp-${version}";
347+ version = "0.19.0";
348+
349+ src = pkgs.fetchurl {
350+ url = "https://pypi.python.org/packages/source/a/aiohttp/${name}.tar.gz";
351+ sha256 = "9bfb173baec179431a1c8f3566185e8ebbd1517cf4450217087d79e26e44c287";
352+ };
353+
354+ disabled = pythonOlder "3.4";
355+
356+ doCheck = false; # Too many tests fail.
357+
358+ buildInputs = with self; [ pytest gunicorn pytest-raisesregexp ];
359+ propagatedBuildInputs = with self; [ chardet ];
360+
361+ meta = {
362+ description = "http client/server for asyncio";
363+ license = with licenses; [ asl20 ];
364+ homepage = https://github.com/KeepSafe/aiohttp/;
365+ };
366+ };
367+
345368 alabaster = buildPythonPackage rec {
346369 name = "alabaster-0.7.3";
347370
@@ -3354,6 +3377,30 @@ in modules // {
33543377 };
33553378 };
33563379
3380+ pytest-raisesregexp = buildPythonPackage rec {
3381+ name = "pytest-raisesregexp-${version}";
3382+ version = "2.0";
3383+
3384+ src = pkgs.fetchurl {
3385+ url = "https://pypi.python.org/packages/source/p/pytest-raisesregexp/${name}.tar.gz";
3386+ sha256 = "0fde8aac1a54f9b56e5f9c61fda76727542ed24968c27c6e3688c6f1885f1e61";
3387+ };
3388+
3389+ buildInputs = with self; [ py pytest ];
3390+
3391+ # https://github.com/kissgyorgy/pytest-raisesregexp/pull/3
3392+ prePatch = ''
3393+ sed -i '3i\import io' setup.py
3394+ substituteInPlace setup.py --replace "long_description=open('README.rst').read()," "long_description=io.open('README.rst', encoding='utf-8').read(),"
3395+ '';
3396+
3397+ meta = {
3398+ description = "Simple pytest plugin to look for regex in Exceptions";
3399+ homepage = https://github.com/Walkman/pytest_raisesregexp;
3400+ license = with licenses; [ mit ];
3401+ };
3402+ };
3403+
33573404 pytestrunner = buildPythonPackage rec {
33583405 version = "2.6.2";
33593406 name = "pytest-runner-${version}";