depot/third_party/nixpkgs/pkgs/development/python-modules/subprocess-tee/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

42 lines
931 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools-scm,
pytestCheckHook,
enrich,
}:
buildPythonPackage rec {
pname = "subprocess-tee";
version = "0.4.1";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-s8EkmT+LiNHrHC/eC8IGl4fqxyC6iHccuhfoyTMkgl0=";
};
nativeBuildInputs = [ setuptools-scm ];
nativeCheckInputs = [
pytestCheckHook
enrich
];
disabledTests = [
# cyclic dependency on `molecule` (see https://github.com/pycontribs/subprocess-tee/issues/50)
"test_molecule"
# duplicates in console output, rich issue
"test_rich_console_ex"
];
pythonImportsCheck = [ "subprocess_tee" ];
meta = with lib; {
homepage = "https://github.com/pycontribs/subprocess-tee";
description = "Subprocess.run drop-in replacement that supports a tee mode";
license = licenses.mit;
maintainers = with maintainers; [ putchar ];
};
}