@@ -3198,6 +3198,30 @@ in modules // {
31983198 };
31993199 };
32003200
3201+ pytest-raisesregexp = buildPythonPackage rec {
3202+ name = "pytest-raisesregexp-${version}";
3203+ version = "2.0";
3204+
3205+ src = pkgs.fetchurl {
3206+ url = "https://pypi.python.org/packages/source/p/pytest-raisesregexp/${name}.tar.gz";
3207+ sha256 = "0fde8aac1a54f9b56e5f9c61fda76727542ed24968c27c6e3688c6f1885f1e61";
3208+ };
3209+
3210+ buildInputs = with self; [ py pytest ];
3211+
3212+ # https://github.com/kissgyorgy/pytest-raisesregexp/pull/3
3213+ prePatch = ''
3214+ sed -i '3i\import io' setup.py
3215+ substituteInPlace setup.py --replace "long_description=open('README.rst').read()," "long_description=io.open('README.rst', encoding='utf-8').read(),"
3216+ '';
3217+
3218+ meta = {
3219+ description = "Simple pytest plugin to look for regex in Exceptions";
3220+ homepage = https://github.com/Walkman/pytest_raisesregexp;
3221+ license = with licenses; [ mit ];
3222+ };
3223+ };
3224+
32013225 pytestrunner = buildPythonPackage rec {
32023226 version = "2.6.2";
32033227 name = "pytest-runner-${version}";