summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-catchlog
diff options
context:
space:
mode:
authorElis Hirwing <elis@hirwing.se>2018-04-01 13:59:27 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2018-04-04 19:46:00 +0200
commite0b97819b7b6351ccd269c390f39a6f58fe86a45 (patch)
treef8e589dcdad0d6ed8037bd604e857ef734eae8f9 /pkgs/development/python-modules/pytest-catchlog
parente805ce8d5c50953cddf261959d7525a8c6e6740d (diff)
downloadnixlib-e0b97819b7b6351ccd269c390f39a6f58fe86a45.tar
nixlib-e0b97819b7b6351ccd269c390f39a6f58fe86a45.tar.gz
nixlib-e0b97819b7b6351ccd269c390f39a6f58fe86a45.tar.bz2
nixlib-e0b97819b7b6351ccd269c390f39a6f58fe86a45.tar.lz
nixlib-e0b97819b7b6351ccd269c390f39a6f58fe86a45.tar.xz
nixlib-e0b97819b7b6351ccd269c390f39a6f58fe86a45.tar.zst
nixlib-e0b97819b7b6351ccd269c390f39a6f58fe86a45.zip
pythonPackages.pytest-catchlog: Move to own file
Diffstat (limited to 'pkgs/development/python-modules/pytest-catchlog')
-rw-r--r--pkgs/development/python-modules/pytest-catchlog/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytest-catchlog/default.nix b/pkgs/development/python-modules/pytest-catchlog/default.nix
new file mode 100644
index 000000000000..fb020ba471fc
--- /dev/null
+++ b/pkgs/development/python-modules/pytest-catchlog/default.nix
@@ -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.";
+  };
+}