nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 40 lines 917 B view raw
1{ 2 python3, 3 lib, 4 fetchFromGitea, 5}: 6 7python3.pkgs.buildPythonApplication { 8 pname = "lerpn"; 9 version = "unstable-2023-06-09"; 10 format = "pyproject"; 11 12 src = fetchFromGitea { 13 domain = "gitea.alexisvl.rocks"; 14 owner = "alexisvl"; 15 repo = "lerpn"; 16 rev = "b65e56cfbbb38f8200e7b0c18b3a585ae768c6e2"; 17 hash = "sha256-4xqBHcOWHAvQtXS9CJWTGTdE4SGHxjghZY+/KPUgX70="; 18 }; 19 20 build-system = with python3.pkgs; [ setuptools ]; 21 22 checkPhase = '' 23 runHook preCheck 24 patchShebangs test 25 26 substituteInPlace test --replace-fail "#raise TestFailedException()" "sys.exit(1)" 27 ./test 28 runHook postCheck 29 ''; 30 31 pythonImportsCheck = [ "LerpnApp" ]; 32 33 meta = with lib; { 34 homepage = "https://gitea.alexisvl.rocks/alexisvl/lerpn"; 35 description = "Curses RPN calculator written in straight Python"; 36 maintainers = [ ]; 37 license = licenses.gpl3Plus; 38 mainProgram = "lerpn"; 39 }; 40}