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