Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smassh: init at 3.1.3 #302618

Merged
merged 2 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,12 @@
fingerprint = "B0D7 2955 235F 6AB5 ACFA 1619 8C7F F5BB 1ADE F191";
}];
};
aimpizza = {
email = "[email protected]";
name = "Rick Omonsky";
github = "AimPizza";
githubId = 64905268;
};
aiotter = {
email = "[email protected]";
github = "aiotter";
Expand Down
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";
};
}