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