From d05c932ab21541c2bbe91a04e1d70ce8d439f18a Mon Sep 17 00:00:00 2001 From: AimPizza Date: Mon, 8 Apr 2024 18:55:47 +0200 Subject: [PATCH 1/2] maintainers: add aimpizza --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index c881ea483e57..370de8f3a5fa 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -649,6 +649,12 @@ fingerprint = "B0D7 2955 235F 6AB5 ACFA 1619 8C7F F5BB 1ADE F191"; }]; }; + aimpizza = { + email = "rickomo.us@gmail.com"; + name = "Rick Omonsky"; + github = "AimPizza"; + githubId = 64905268; + }; aiotter = { email = "git@aiotter.com"; github = "aiotter"; From 5dccc92115d4d7e3ef69a83f5aa96dd404580b99 Mon Sep 17 00:00:00 2001 From: AimPizza Date: Mon, 8 Apr 2024 09:58:24 +0200 Subject: [PATCH 2/2] smassh: init at 3.1.3 --- pkgs/by-name/sm/smassh/package.nix | 52 ++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 pkgs/by-name/sm/smassh/package.nix diff --git a/pkgs/by-name/sm/smassh/package.nix b/pkgs/by-name/sm/smassh/package.nix new file mode 100644 index 000000000000..7ad746341373 --- /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"; + }; +}