1{ lib
2, buildPythonPackage
3, fetchPypi
4, setuptools-scm
5, pytestCheckHook
6, enrich
7}:
8
9buildPythonPackage rec {
10 pname = "subprocess-tee";
11 version = "0.3.5";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "ff5cced589a4b8ac973276ca1ba21bb6e3de600cde11a69947ff51f696efd577";
16 };
17
18 nativeBuildInputs = [
19 setuptools-scm
20 ];
21
22 checkInputs = [
23 pytestCheckHook
24 enrich
25 ];
26
27 disabledTests = [
28 # cyclic dependency on `molecule` (see https://github.com/pycontribs/subprocess-tee/issues/50)
29 "test_molecule"
30 # duplicates in console output, rich issue
31 "test_rich_console_ex"
32 ];
33
34 pythonImportsCheck = [
35 "subprocess_tee"
36 ];
37
38 meta = with lib; {
39 homepage = "https://github.com/pycontribs/subprocess-tee";
40 description = "A subprocess.run drop-in replacement that supports a tee mode";
41 license = licenses.mit;
42 maintainers = with maintainers; [ putchar ];
43 };
44}