From be675d6aecc378134186bfdec4574d2b6dc81239 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Thu, 10 Dec 2015 14:51:51 +0100 Subject: [PATCH 1/2] python pytest-raisesregexp: init at 2.0 --- pkgs/top-level/python-packages.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b9247fc4404..ec3c18c4ce2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3198,6 +3198,30 @@ in modules // { }; }; + pytest-raisesregexp = buildPythonPackage rec { + name = "pytest-raisesregexp-${version}"; + version = "2.0"; + + src = pkgs.fetchurl { + url = "https://pypi.python.org/packages/source/p/pytest-raisesregexp/${name}.tar.gz"; + sha256 = "0fde8aac1a54f9b56e5f9c61fda76727542ed24968c27c6e3688c6f1885f1e61"; + }; + + buildInputs = with self; [ py pytest ]; + + # https://github.com/kissgyorgy/pytest-raisesregexp/pull/3 + prePatch = '' + sed -i '3i\import io' setup.py + substituteInPlace setup.py --replace "long_description=open('README.rst').read()," "long_description=io.open('README.rst', encoding='utf-8').read()," + ''; + + meta = { + description = "Simple pytest plugin to look for regex in Exceptions"; + homepage = https://github.com/Walkman/pytest_raisesregexp; + license = with licenses; [ mit ]; + }; + }; + pytestrunner = buildPythonPackage rec { version = "2.6.2"; name = "pytest-runner-${version}"; From ffa24484a0ccdc7063e84df8f19aff7d492ac9db Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Thu, 10 Dec 2015 14:52:04 +0100 Subject: [PATCH 2/2] python aiohttp: init at 0.19.0 --- pkgs/top-level/python-packages.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ec3c18c4ce2..af69118403c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -311,6 +311,29 @@ in modules // { }; }; + aiohttp = buildPythonPackage rec { + name = "aiohttp-${version}"; + version = "0.19.0"; + + src = pkgs.fetchurl { + url = "https://pypi.python.org/packages/source/a/aiohttp/${name}.tar.gz"; + sha256 = "9bfb173baec179431a1c8f3566185e8ebbd1517cf4450217087d79e26e44c287"; + }; + + disabled = pythonOlder "3.4"; + + doCheck = false; # Too many tests fail. + + buildInputs = with self; [ pytest gunicorn pytest-raisesregexp ]; + propagatedBuildInputs = with self; [ chardet ]; + + meta = { + description = "http client/server for asyncio"; + license = with licenses; [ asl20 ]; + homepage = https://github.com/KeepSafe/aiohttp/; + }; + }; + alabaster = buildPythonPackage rec { name = "alabaster-0.7.3";