Merge pull request #11600 from FRidh/aiohttp

python: new packages

+47
+47
pkgs/top-level/python-packages.nix
··· 342 342 }; 343 343 }; 344 344 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 + 345 368 alabaster = buildPythonPackage rec { 346 369 name = "alabaster-0.7.3"; 347 370 ··· 3352 3375 description = "py.test plugin for PEP257"; 3353 3376 license = licenses.mit; 3354 3377 }; 3378 + }; 3379 + 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 + }; 3355 3402 }; 3356 3403 3357 3404 pytestrunner = buildPythonPackage rec {