1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools-scm, 6 pytestCheckHook, 7 enrich, 8}: 9 10buildPythonPackage rec { 11 pname = "subprocess-tee"; 12 version = "0.4.1"; 13 format = "pyproject"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-s8EkmT+LiNHrHC/eC8IGl4fqxyC6iHccuhfoyTMkgl0="; 18 }; 19 20 nativeBuildInputs = [ setuptools-scm ]; 21 22 nativeCheckInputs = [ 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 = [ "subprocess_tee" ]; 35 36 meta = with lib; { 37 homepage = "https://github.com/pycontribs/subprocess-tee"; 38 description = "A subprocess.run drop-in replacement that supports a tee mode"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ putchar ]; 41 }; 42}