about summary refs log tree commit diff
path: root/pkgs/by-name
diff options
context:
space:
mode:
authorBernardo Meurer <bernardo@meurer.org>2024-04-15 10:34:46 -0400
committerGitHub <noreply@github.com>2024-04-15 10:34:46 -0400
commit51e2bd44aa494bff30739e285bc6114eb7f0d384 (patch)
tree424e302c1d7573c95931c60880f82ca85ce18328 /pkgs/by-name
parent3947220b3dd2c4f44f664c0d08e1c29dce5b0db5 (diff)
parent5dccc92115d4d7e3ef69a83f5aa96dd404580b99 (diff)
Merge pull request #302618 from AimPizza/smassh
smassh: init at 3.1.3
Diffstat (limited to 'pkgs/by-name')
-rw-r--r--pkgs/by-name/sm/smassh/package.nix52
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/by-name/sm/smassh/package.nix b/pkgs/by-name/sm/smassh/package.nix
new file mode 100644
index 0000000000000..7ad7463413732
--- /dev/null
+++ b/pkgs/by-name/sm/smassh/package.nix
@@ -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";
+  };
+}