pythonPackages.pytest-catchlog: Move to own file
This commit is contained in:
parent
e805ce8d5c
commit
e0b97819b7
24
pkgs/development/python-modules/pytest-catchlog/default.nix
Normal file
24
pkgs/development/python-modules/pytest-catchlog/default.nix
Normal 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.";
|
||||||
|
};
|
||||||
|
}
|
@ -1916,26 +1916,7 @@ in {
|
|||||||
|
|
||||||
pytestcache = callPackage ../development/python-modules/pytestcache { };
|
pytestcache = callPackage ../development/python-modules/pytestcache { };
|
||||||
|
|
||||||
pytest-catchlog = buildPythonPackage rec {
|
pytest-catchlog = callPackage ../development/python-modules/pytest-catchlog { };
|
||||||
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-cram = callPackage ../development/python-modules/pytest-cram { };
|
pytest-cram = callPackage ../development/python-modules/pytest-cram { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user