termtekst: migrate to pyproject; use tag, hash and --replace-fail (#530386)
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user