depot/third_party/nixpkgs/pkgs/development/python-modules/subprocess-tee/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

44 lines
922 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
, pytestCheckHook
, enrich
}:
buildPythonPackage rec {
pname = "subprocess-tee";
version = "0.3.5";
src = fetchPypi {
inherit pname version;
sha256 = "ff5cced589a4b8ac973276ca1ba21bb6e3de600cde11a69947ff51f696efd577";
};
nativeBuildInputs = [
setuptools-scm
];
checkInputs = [
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 = "A subprocess.run drop-in replacement that supports a tee mode";
license = licenses.mit;
maintainers = with maintainers; [ putchar ];
};
}