1{ lib, buildPythonPackage, fetchFromGitHub, humanfriendly, pytest, pytestcov }:
2
3buildPythonPackage rec {
4 pname = "capturer";
5 version = "3.0";
6
7 src = fetchFromGitHub {
8 owner = "xolox";
9 repo = "python-capturer";
10 rev = version;
11 sha256 = "0fwrxa049gzin5dck7fvwhdp1856jrn0d7mcjcjsd7ndqvhgvjj1";
12 };
13
14 propagatedBuildInputs = [ humanfriendly ];
15
16 checkPhase = ''
17 PATH=$PATH:$out/bin pytest .
18 '';
19 checkInputs = [ pytest ];
20
21 meta = with lib; {
22 description = "Easily capture stdout/stderr of the current process and subprocesses";
23 homepage = "https://github.com/xolox/python-capturer";
24 license = licenses.mit;
25 maintainers = with maintainers; [ eyjhb ];
26 };
27}