1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 wcwidth,
7}:
8
9buildPythonPackage rec {
10 pname = "pyte";
11 version = "0.8.2";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "selectel";
16 repo = "pyte";
17 rev = version;
18 hash = "sha256-u24ltX/LEteiZ2a/ioKqxV2AZgrFmKOHXmySmw21sLE=";
19 };
20
21 postPatch = ''
22 # Remove pytest-runner dependency since it is not supported in the NixOS
23 # sandbox
24 sed -i '/pytest-runner/d' setup.py
25 '';
26
27 propagatedBuildInputs = [ wcwidth ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 pythonImportsCheck = [ "pyte" ];
32
33 meta = with lib; {
34 description = "Simple VTXXX-compatible linux terminal emulator";
35 homepage = "https://github.com/selectel/pyte";
36 license = licenses.lgpl3;
37 maintainers = with maintainers; [ flokli ];
38 };
39}