blob: a7cdbb0017209e0af1d5df8add2e2a3486849580 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{
stdenv,
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
humanfriendly,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "capturer";
version = "3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "xolox";
repo = "python-capturer";
rev = version;
sha256 = "0fwrxa049gzin5dck7fvwhdp1856jrn0d7mcjcjsd7ndqvhgvjj1";
};
patches = [
# https://github.com/xolox/python-capturer/pull/16
(fetchpatch {
name = "python314-compat.patch";
url = "https://github.com/xolox/python-capturer/commit/3d0a9a040ecaa78ce2d39ec76ff5084ee7be6653.patch";
hash = "sha256-NW+X6wdXMHSLswO7M7/YeIyHu+EDYTLJE/mBkqyhKUM=";
})
];
build-system = [ setuptools ];
dependencies = [ humanfriendly ];
# hangs on darwin
doCheck = !stdenv.hostPlatform.isDarwin;
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Easily capture stdout/stderr of the current process and subprocesses";
homepage = "https://github.com/xolox/python-capturer";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ eyjhb ];
};
}
|