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