2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, pytest, unzip }:
|
2018-04-01 12:59:27 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-catchlog";
|
|
|
|
version = "1.2.2";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1w7wxh27sbqwm4jgwrjr9c2gy384aca5jzw9c0wzhl0pmk2mvqab";
|
|
|
|
extension = "zip";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pytest unzip ];
|
|
|
|
checkPhase = "make test";
|
|
|
|
|
|
|
|
# Requires pytest < 3.1
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-04-01 12:59:27 +01:00
|
|
|
license = licenses.mit;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pypi.python.org/pypi/pytest-catchlog/";
|
2018-04-01 12:59:27 +01:00
|
|
|
description = "py.test plugin to catch log messages. This is a fork of pytest-capturelog.";
|
|
|
|
};
|
|
|
|
}
|