@@ -0,0 +1,27 @@
1+{ lib, buildPythonPackage, fetchFromGitHub, humanfriendly, pytest, pytestcov }:
2+
3+buildPythonPackage rec {
4+ pname = "capturer";
5+ version = "2.4";
6+
7+ src = fetchFromGitHub {
8+ owner = "xolox";
9+ repo = "python-capturer";
10+ rev = version;
11+ sha256 = "07zy264xd0g7pz9sxjqcpwmrck334xcbb7wfss26lmvgdr5nhcb9";
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+}