13da32182d
GitOrigin-RevId: a7855f2235a1876f97473a76151fec2afa02b287
45 lines
915 B
Nix
45 lines
915 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, procps
|
|
, tmux
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "libtmux";
|
|
version = "0.13.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tmux-python";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-u08lxVMuyO5CwFbmxn69QqdSWcvGaSMZgizRJlsHa0k=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
checkInputs = [
|
|
procps
|
|
tmux
|
|
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = 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; [ ];
|
|
};
|
|
}
|