a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
54 lines
1 KiB
Nix
54 lines
1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, poetry-core
|
|
, pytest-rerunfailures
|
|
, pytestCheckHook
|
|
, procps
|
|
, tmux
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "libtmux";
|
|
version = "0.18.1";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tmux-python";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-OhNyJcnxjbyP/Kpt70qLv3ZtZvXXVTWEMcjv/pa50/4=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i '/addopts/d' setup.cfg
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
procps
|
|
tmux
|
|
pytest-rerunfailures
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"tests"
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
"--ignore=tests/test_test.py"
|
|
];
|
|
|
|
pythonImportsCheck = [ "libtmux" ];
|
|
|
|
meta = with lib; {
|
|
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 = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|