-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #302618 from AimPizza/smassh
smassh: init at 3.1.3
- Loading branch information
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -667,6 +667,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"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
}; | ||
} |