nixpkgs/pkgs/development/python-modules/subprocess-tee/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

49 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
setuptools-scm,
pytestCheckHook,
enrich,
}:
buildPythonPackage rec {
pname = "subprocess-tee";
version = "0.4.2";
pyproject = true;
src = fetchFromGitHub {
owner = "pycontribs";
repo = "subprocess-tee";
tag = "v${version}";
hash = "sha256-rfI4UZdENfSQ9EbQeldv6DDGIQe5yMjboGTCOwed1AU=";
};
build-system = [
setuptools
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 = {
homepage = "https://github.com/pycontribs/subprocess-tee";
description = "Subprocess.run drop-in replacement that supports a tee mode";
changelog = "https://github.com/pycontribs/subprocess-tee/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ putchar ];
};
}