pythonPackages.pytest-catchlog: Move to own file

This commit is contained in:
Elis Hirwing 2018-04-01 13:59:27 +02:00 committed by Frederik Rietdijk
parent e805ce8d5c
commit e0b97819b7
2 changed files with 25 additions and 20 deletions

View File

@ -0,0 +1,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.";
};
}

View File

@ -1916,26 +1916,7 @@ in {
pytestcache = callPackage ../development/python-modules/pytestcache { };
pytest-catchlog = buildPythonPackage rec {
name = "pytest-catchlog-1.2.2";
src = pkgs.fetchurl {
url = "mirror://pypi/p/pytest-catchlog/${name}.zip";
sha256 = "1w7wxh27sbqwm4jgwrjr9c2gy384aca5jzw9c0wzhl0pmk2mvqab";
};
buildInputs = with self; [ pytest ];
checkPhase = "make test";
# Requires pytest < 3.1
doCheck = false;
meta = {
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.";
};
};
pytest-catchlog = callPackage ../development/python-modules/pytest-catchlog { };
pytest-cram = callPackage ../development/python-modules/pytest-cram { };