Files
nixpkgs/pkgs/by-name/te/termtekst/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

47 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
python3Packages,
ncurses,
}:
python3Packages.buildPythonApplication rec {
pname = "termtekst";
version = "1.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "zevv";
repo = "termtekst";
rev = "v${version}";
sha256 = "1gm7j5d49a60wm7px82b76f610i8pl8ccz4r6qsz90z4mp3lyw9b";
};
propagatedBuildInputs = with python3Packages; [
ncurses
requests
];
patchPhase = ''
substituteInPlace setup.py \
--replace "assert" "assert 1==1 #"
substituteInPlace src/tt \
--replace "locale.setlocale" "#locale.setlocale"
'';
meta = with lib; {
description = "Console NOS Teletekst viewer in Python";
mainProgram = "tt";
longDescription = ''
Small Python app using curses to display Dutch NOS Teletekst on
the Linux console. The original Teletekst font includes 2x6
raster graphics glyphs which have no representation in unicode;
as a workaround the braille set is abused to approximate the
graphics.
'';
license = licenses.mit;
maintainers = with maintainers; [ leenaars ];
platforms = platforms.all;
};
}