about summary refs log tree commit diff
path: root/pkgs/applications/misc/wpm/default.nix
blob: f7786471839a5cd528887feffa2cbabdc502b37d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib
, python3
, fetchPypi
}:

python3.pkgs.buildPythonApplication rec {
  pname = "wpm";
  version = "1.51.5";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-swT9E5Tto4yWnm0voowcJXtY3cIY3MNqAdfrTnuGbdg=";
  };

  propagatedBuildInputs = with python3.pkgs; [
    setuptools
  ];

  pythonImportsCheck = [ "wpm" ];

  meta = with lib; {
    description = "Console app for measuring typing speed in words per minute (WPM)";
    mainProgram = "wpm";
    homepage = "https://pypi.org/project/wpm";
    license = licenses.agpl3Only;
    maintainers = with maintainers; [ alejandrosame ];
  };
}