push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,70 @@
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
hatchling,
ncurses,
procps,
pytest-rerunfailures,
pytestCheckHook,
tmux,
}:
buildPythonPackage rec {
pname = "libtmux";
version = "0.46.2";
pyproject = true;
src = fetchFromGitHub {
owner = "tmux-python";
repo = "libtmux";
tag = "v${version}";
hash = "sha256-M3su+bDFuvmNEDVK+poWfxwbpsw/0L1/R6Z4CL0mvZ4=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail '"--doctest-docutils-modules",' ""
'';
build-system = [ hatchling ];
nativeCheckInputs = [
procps
tmux
ncurses
pytest-rerunfailures
pytestCheckHook
];
enabledTestPaths = [ "tests" ];
disabledTests = [
# Fail with: 'no server running on /tmp/tmux-1000/libtmux_test8sorutj1'.
"test_new_session_width_height"
# Assertion error
"test_capture_pane_start"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# tests/test_pane.py:113: AssertionError
"test_capture_pane_start"
# assert (1740973920.500444 - 1740973919.015309) <= 1.1
"test_retry_three_times"
"test_function_times_out_no_raise"
# assert False
"test_retry_three_times_no_raise_assert"
];
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ "tests/test/test_retry.py" ];
pythonImportsCheck = [ "libtmux" ];
meta = {
description = "Typed scripting library / ORM / API wrapper for tmux";
homepage = "https://libtmux.git-pull.com/";
changelog = "https://github.com/tmux-python/libtmux/raw/v${version}/CHANGES";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ otavio ];
};
}