Skip to content

Commit

Permalink
smassh: init at 3.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
AimPizza committed Apr 14, 2024
1 parent d10eea2 commit 022a760
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions pkgs/by-name/sm/smassh/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{ lib
, fetchFromGitHub
, smassh
, python3
, testers
}:

python3.pkgs.buildPythonApplication rec {
pname = "smassh";
version = "3.1.3";
pyproject = true;

src = fetchFromGitHub {
owner = "kraanzu";
repo = "smassh";
rev = "v${version}";
hash = "sha256-QE7TFf/5hdd2W2EsVbn3gV/FundhJNxHqv0JWV5dYDc=";
};

nativeBuildInputs = with python3.pkgs; [
poetry-core
pythonRelaxDepsHook
];

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 = "A 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";
};
}

0 comments on commit 022a760

Please sign in to comment.