1{
2 stdenv,
3 lib,
4 buildPythonPackage,
5 fetchFromGitHub,
6 humanfriendly,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "capturer";
12 version = "3.0";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "xolox";
17 repo = "python-capturer";
18 rev = version;
19 sha256 = "0fwrxa049gzin5dck7fvwhdp1856jrn0d7mcjcjsd7ndqvhgvjj1";
20 };
21
22 propagatedBuildInputs = [ humanfriendly ];
23
24 # hangs on darwin
25 doCheck = !stdenv.hostPlatform.isDarwin;
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 meta = with lib; {
29 description = "Easily capture stdout/stderr of the current process and subprocesses";
30 homepage = "https://github.com/xolox/python-capturer";
31 license = licenses.mit;
32 maintainers = with maintainers; [ eyjhb ];
33 };
34}