diff options
author | Elis Hirwing <elis@hirwing.se> | 2018-04-01 14:16:24 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-04-04 19:46:00 +0200 |
commit | 9fc3f7f12dfd0885129b898038338804e8d29732 (patch) | |
tree | 404048f8c09ed87db693cba1ec1fe185953c2f95 /pkgs/development/python-modules/pytest-raisesregexp | |
parent | f9beba2c06dd1df0bf5802d23197ddc876f75009 (diff) | |
download | nixlib-9fc3f7f12dfd0885129b898038338804e8d29732.tar nixlib-9fc3f7f12dfd0885129b898038338804e8d29732.tar.gz nixlib-9fc3f7f12dfd0885129b898038338804e8d29732.tar.bz2 nixlib-9fc3f7f12dfd0885129b898038338804e8d29732.tar.lz nixlib-9fc3f7f12dfd0885129b898038338804e8d29732.tar.xz nixlib-9fc3f7f12dfd0885129b898038338804e8d29732.tar.zst nixlib-9fc3f7f12dfd0885129b898038338804e8d29732.zip |
pythonPackages.pytest-raisesregexp: Move to own file
Diffstat (limited to 'pkgs/development/python-modules/pytest-raisesregexp')
-rw-r--r-- | pkgs/development/python-modules/pytest-raisesregexp/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytest-raisesregexp/default.nix b/pkgs/development/python-modules/pytest-raisesregexp/default.nix new file mode 100644 index 000000000000..485729364331 --- /dev/null +++ b/pkgs/development/python-modules/pytest-raisesregexp/default.nix @@ -0,0 +1,26 @@ +{ stdenv, buildPythonPackage, fetchPypi +, py, pytest }: + +buildPythonPackage rec { + pname = "pytest-raisesregexp"; + version = "2.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "0q8yby4g3il86rp7rhk89792wm17cykzsqcwbxpbbyal3an8mphg"; + }; + + buildInputs = [ 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 = with stdenv.lib; { + description = "Simple pytest plugin to look for regex in Exceptions"; + homepage = https://github.com/Walkman/pytest_raisesregexp; + license = with licenses; [ mit ]; + }; +} |