depot/third_party/nixpkgs/pkgs/by-name/sm/smassh/package.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

51 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
smassh,
python311,
testers,
}:
let
python3 = python311;
in
python3.pkgs.buildPythonApplication rec {
pname = "smassh";
version = "3.1.4";
pyproject = true;
src = fetchFromGitHub {
owner = "kraanzu";
repo = "smassh";
rev = "v${version}";
hash = "sha256-MeLub6zeviY7yyPP2FI9b37nUwHZbxW6onuFXSkmvqk";
};
nativeBuildInputs = with python3.pkgs; [ poetry-core ];
pythonRelaxDeps = [ "textual" ];
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";
};
}