Files
nixpkgs/pkgs/by-name/le/lerpn/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

41 lines
917 B
Nix

{
python3,
lib,
fetchFromGitea,
}:
python3.pkgs.buildPythonApplication {
pname = "lerpn";
version = "unstable-2023-06-09";
format = "pyproject";
src = fetchFromGitea {
domain = "gitea.alexisvl.rocks";
owner = "alexisvl";
repo = "lerpn";
rev = "b65e56cfbbb38f8200e7b0c18b3a585ae768c6e2";
hash = "sha256-4xqBHcOWHAvQtXS9CJWTGTdE4SGHxjghZY+/KPUgX70=";
};
build-system = with python3.pkgs; [ setuptools ];
checkPhase = ''
runHook preCheck
patchShebangs test
substituteInPlace test --replace-fail "#raise TestFailedException()" "sys.exit(1)"
./test
runHook postCheck
'';
pythonImportsCheck = [ "LerpnApp" ];
meta = with lib; {
homepage = "https://gitea.alexisvl.rocks/alexisvl/lerpn";
description = "Curses RPN calculator written in straight Python";
maintainers = [ ];
license = licenses.gpl3Plus;
mainProgram = "lerpn";
};
}