Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 python3, 4 fetchPypi, 5}: 6 7python3.pkgs.buildPythonApplication rec { 8 pname = "wpm"; 9 version = "1.51.5"; 10 pyproject = true; 11 12 src = fetchPypi { 13 inherit pname version; 14 hash = "sha256-swT9E5Tto4yWnm0voowcJXtY3cIY3MNqAdfrTnuGbdg="; 15 }; 16 17 build-system = with python3.pkgs; [ setuptools ]; 18 19 dependencies = with python3.pkgs; [ 20 setuptools # pkg_resources is imported during runtime 21 ]; 22 23 pythonImportsCheck = [ "wpm" ]; 24 25 meta = with lib; { 26 description = "Console app for measuring typing speed in words per minute (WPM)"; 27 mainProgram = "wpm"; 28 homepage = "https://pypi.org/project/wpm"; 29 license = licenses.agpl3Only; 30 maintainers = with maintainers; [ alejandrosame ]; 31 }; 32}