2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-07-27 06:49:29 +00:00
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
setuptools-scm,
|
|
|
|
pytestCheckHook,
|
|
|
|
enrich,
|
2021-08-18 13:19:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "subprocess-tee";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.4.2";
|
|
|
|
pyproject = true;
|
2021-08-18 13:19:15 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pycontribs";
|
|
|
|
repo = "subprocess-tee";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-rfI4UZdENfSQ9EbQeldv6DDGIQe5yMjboGTCOwed1AU=";
|
2021-08-18 13:19:15 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2021-08-18 13:19:15 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-08-18 13:19:15 +00:00
|
|
|
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
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "subprocess_tee" ];
|
2021-08-18 13:19:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/pycontribs/subprocess-tee";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Subprocess.run drop-in replacement that supports a tee mode";
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://github.com/pycontribs/subprocess-tee/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
|
2021-08-18 13:19:15 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ putchar ];
|
|
|
|
};
|
|
|
|
}
|