Files
nixpkgs/pkgs/by-name/re/rexi/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

56 lines
1.2 KiB
Nix

{
lib,
python3Packages,
fetchFromGitHub,
}:
python3Packages.buildPythonApplication rec {
pname = "rexi";
version = "1.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "royreznik";
repo = "rexi";
tag = "v${version}";
hash = "sha256-tag2/QTM6tDCU3qr4e1GqRYAZgpvEgtA+FtR4P7WdiU=";
};
# AttributeError: 'Static' object has no attribute 'renderable'.
# In textual==0.6.0, the `renderable` property was renamed to `content`
# https://github.com/Textualize/textual/pull/6041
postPatch = ''
substituteInPlace tests/test_ui.py \
--replace-fail ".renderable" ".content"
'';
build-system = with python3Packages; [
poetry-core
];
dependencies = with python3Packages; [
colorama
typer
textual
];
nativeCheckInputs = with python3Packages; [
pytestCheckHook
pytest-asyncio
pytest-cov-stub
];
pythonRelaxDeps = [
"textual"
"typer"
];
meta = {
description = "User-friendly terminal UI to interactively work with regular expressions";
homepage = "https://github.com/royreznik/rexi";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ gauravghodinde ];
mainProgram = "rexi";
};
}