1{ stdenv, lib, buildPythonPackage, fetchFromGitHub, humanfriendly, pytestCheckHook }:
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 # hangs on darwin
17 doCheck = !stdenv.isDarwin;
18 checkInputs = [ pytestCheckHook ];
19
20 meta = with lib; {
21 description = "Easily capture stdout/stderr of the current process and subprocesses";
22 homepage = "https://github.com/xolox/python-capturer";
23 license = licenses.mit;
24 maintainers = with maintainers; [ eyjhb ];
25 };
26}