summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-catchlog/default.nix
blob: 35d3fce49d1b03b8b69f19bf6ed7b93519c15b57 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, buildPythonPackage, fetchPypi, pytest, unzip }:

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;

  meta = with stdenv.lib; {
    license = licenses.mit;
    homepage = "https://pypi.python.org/pypi/pytest-catchlog/";
    description = "py.test plugin to catch log messages. This is a fork of pytest-capturelog.";
  };
}