1{ lib 2, stdenv 3, fetchFromGitHub 4, buildPythonPackage 5, poetry-core 6, pytestCheckHook 7, procps 8, tmux 9}: 10 11buildPythonPackage rec { 12 pname = "libtmux"; 13 version = "0.13.0"; 14 format = "pyproject"; 15 16 src = fetchFromGitHub { 17 owner = "tmux-python"; 18 repo = pname; 19 rev = "refs/tags/v${version}"; 20 hash = "sha256-u08lxVMuyO5CwFbmxn69QqdSWcvGaSMZgizRJlsHa0k="; 21 }; 22 23 nativeBuildInputs = [ 24 poetry-core 25 ]; 26 27 checkInputs = [ 28 procps 29 tmux 30 31 pytestCheckHook 32 ]; 33 34 pytestFlagsArray = lib.optionals stdenv.isDarwin [ "--ignore=tests/test_test.py" ]; 35 36 pythonImportsCheck = [ "libtmux" ]; 37 38 meta = with lib; { 39 description = "Typed scripting library / ORM / API wrapper for tmux"; 40 homepage = "https://libtmux.git-pull.com/"; 41 changelog = "https://github.com/tmux-python/libtmux/raw/v${version}/CHANGES"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ ]; 44 }; 45}