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