@@ -0,0 +1,36 @@
1+{ lib, fetchFromGitHub, python3Packages, ncurses }:
2+
3+python3Packages.buildPythonApplication rec {
4+ pname = "termtekst";
5+ version = "1.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "zevv";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "1gm7j5d49a60wm7px82b76f610i8pl8ccz4r6qsz90z4mp3lyw9b";
12+ };
13+
14+ propagatedBuildInputs = with python3Packages; [ ncurses requests ];
15+
16+ patchPhase = ''
17+ substituteInPlace setup.py \
18+ --replace "assert" "assert 1==1 #"
19+ substituteInPlace src/tt \
20+ --replace "locale.setlocale" "#locale.setlocale"
21+ '';
22+
23+ meta = with lib; {
24+ description = ''Console NOS Teletekst viewer in Python'';
25+ longDescription = ''
26+ Small Python app using curses to display Dutch NOS Teletekst on
27+ the Linux console. The original Teletekst font includes 2x6
28+ raster graphics glyphs which have no representation in unicode;
29+ as a workaround the braille set is abused to approximate the
30+ graphics.
31+ '';
32+ license = licenses.mit;
33+ maintainers = with maintainers; [ leenaars ];
34+ platforms = platforms.all;
35+ };
36+}