Merge pull request #130576 from putchar/python3-add-subprocess-tee

This commit is contained in:
Sandro
2021-08-16 16:31:42 +02:00
committed by GitHub
3 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
, pytestCheckHook
, enrich
}:
buildPythonPackage rec {
pname = "subprocess-tee";
version = "0.3.2";
src = fetchPypi {
inherit pname version;
sha256 = "01b0z8mcm568v9carhi0py1hs34wrbnlzyvdmhqzipql407kdpk2";
};
nativeBuildInputs = [
setuptools-scm
];
checkInputs = [
pytestCheckHook
enrich
];
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 ];
};
}