termtekst: migrate to pyproject; use tag, hash and --replace-fail (#530386)

This commit is contained in:
Yohann Boniface
2026-06-10 21:55:00 +00:00
committed by GitHub
+8 -6
View File
@@ -8,25 +8,27 @@
python3Packages.buildPythonApplication (finalAttrs: {
pname = "termtekst";
version = "1.0";
format = "setuptools";
pyproject = true;
build-system = with python3Packages; [ setuptools ];
src = fetchFromGitHub {
owner = "zevv";
repo = "termtekst";
rev = "v${finalAttrs.version}";
sha256 = "1gm7j5d49a60wm7px82b76f610i8pl8ccz4r6qsz90z4mp3lyw9b";
tag = "v${finalAttrs.version}";
hash = "sha256-K3FPx63kg/Q1Npl8xhC9KIJgnDlLoH5P5cCoRFqRp74=";
};
propagatedBuildInputs = with python3Packages; [
dependencies = with python3Packages; [
ncurses
requests
];
patchPhase = ''
substituteInPlace setup.py \
--replace "assert" "assert 1==1 #"
--replace-fail "assert" "assert 1==1 #"
substituteInPlace src/tt \
--replace "locale.setlocale" "#locale.setlocale"
--replace-fail "locale.setlocale" "#locale.setlocale"
'';
meta = {