1{ stdenv, buildPythonPackage, fetchPypi, pytest, unzip }: 2 3buildPythonPackage rec { 4 pname = "pytest-catchlog"; 5 version = "1.2.2"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "1w7wxh27sbqwm4jgwrjr9c2gy384aca5jzw9c0wzhl0pmk2mvqab"; 10 extension = "zip"; 11 }; 12 13 buildInputs = [ pytest unzip ]; 14 checkPhase = "make test"; 15 16 # Requires pytest < 3.1 17 doCheck = false; 18 19 meta = with stdenv.lib; { 20 license = licenses.mit; 21 homepage = https://pypi.python.org/pypi/pytest-catchlog/; 22 description = "py.test plugin to catch log messages. This is a fork of pytest-capturelog."; 23 }; 24}