1{ lib, 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 nativeBuildInputs = [ unzip ]; 14 buildInputs = [ pytest ]; 15 checkPhase = "make test"; 16 17 # Requires pytest < 3.1 18 doCheck = false; 19 20 meta = with lib; { 21 license = licenses.mit; 22 homepage = "https://pypi.python.org/pypi/pytest-catchlog/"; 23 description = "py.test plugin to catch log messages. This is a fork of pytest-capturelog."; 24 }; 25}