depot/pkgs/by-name/sm/smassh/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

58 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
smassh,
python311,
testers,
}:
let
python3 = python311;
in
python3.pkgs.buildPythonApplication rec {
pname = "smassh";
version = "3.1.6";
pyproject = true;
src = fetchFromGitHub {
owner = "kraanzu";
repo = "smassh";
rev = "v${version}";
hash = "sha256-P0fZHSsaKIwJspEBxM5MEK3Z4kemXJWlIOQI9cmvlF4=";
};
nativeBuildInputs = with python3.pkgs; [ poetry-core ];
pythonRelaxDeps = [
"platformdirs"
"textual"
];
propagatedBuildInputs = with python3.pkgs; [
click
platformdirs
requests
textual
];
# No tests available
doCheck = false;
passthru.tests.version = testers.testVersion {
package = smassh;
command = "HOME=$(mktemp -d) smassh --version";
version = "smassh - v${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
kraanzu
];
mainProgram = "smassh";
};
}