nixpkgs/pkgs/by-name/sm/smassh/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.1 KiB
Nix
Raw Normal View History

2024-07-27 22:41:49 +00:00
{
lib,
fetchFromGitHub,
smassh,
python311,
testers,
2024-04-08 07:58:24 +00:00
}:
2024-07-27 22:41:49 +00:00
let
python3 = python311;
in
2024-04-08 07:58:24 +00:00
python3.pkgs.buildPythonApplication rec {
pname = "smassh";
2024-07-27 22:41:49 +00:00
version = "3.1.4";
2024-04-08 07:58:24 +00:00
pyproject = true;
src = fetchFromGitHub {
owner = "kraanzu";
repo = "smassh";
rev = "v${version}";
2024-07-27 22:41:49 +00:00
hash = "sha256-MeLub6zeviY7yyPP2FI9b37nUwHZbxW6onuFXSkmvqk";
2024-04-08 07:58:24 +00:00
};
2024-07-27 22:41:49 +00:00
nativeBuildInputs = with python3.pkgs; [ poetry-core ];
2024-04-08 07:58:24 +00:00
2024-07-27 22:41:49 +00:00
pythonRelaxDeps = [ "textual" ];
2024-04-08 07:58:24 +00:00
propagatedBuildInputs = with python3.pkgs; [
textual
appdirs
click
requests
];
# No tests available
doCheck = false;
passthru.tests.version = testers.testVersion {
package = smassh;
command = "HOME=$(mktemp -d) smassh --version";
};
meta = with lib; {
description = "TUI based typing test application inspired by MonkeyType";
homepage = "https://github.com/kraanzu/smassh";
changelog = "https://github.com/kraanzu/smassh/blob/main/CHANGELOG.md";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ aimpizza ];
mainProgram = "smassh";
};
}