2021-08-18 13:19:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools-scm
|
|
|
|
, pytestCheckHook
|
|
|
|
, enrich
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "subprocess-tee";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "0.3.5";
|
2021-08-18 13:19:15 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "ff5cced589a4b8ac973276ca1ba21bb6e3de600cde11a69947ff51f696efd577";
|
2021-08-18 13:19:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
enrich
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
disabledTests = [
|
|
|
|
# cyclic dependency on `molecule` (see https://github.com/pycontribs/subprocess-tee/issues/50)
|
|
|
|
"test_molecule"
|
2022-08-12 12:06:08 +00:00
|
|
|
# duplicates in console output, rich issue
|
|
|
|
"test_rich_console_ex"
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
2021-08-18 13:19:15 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"subprocess_tee"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/pycontribs/subprocess-tee";
|
|
|
|
description = "A subprocess.run drop-in replacement that supports a tee mode";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ putchar ];
|
|
|
|
};
|
|
|
|
}
|