1{ lib, buildPythonPackage, fetchPypi, rpi-gpio }: 2 3buildPythonPackage rec { 4 pname = "pad4pi"; 5 version = "1.1.5"; 6 7 src = fetchPypi { 8 inherit pname version; 9 hash = "sha256-+oVYlqF5PQAFz4EO1ap6pjmYTLg9xQy6UbQja4utt2Q="; 10 }; 11 12 propagatedBuildInputs = [ rpi-gpio ]; 13 14 # Checks depend on rpi-gpio which requires to be run on a Raspberry Pi, 15 # therefore it fails on other systems 16 doCheck = false; 17 18 meta = with lib; { 19 homepage = "https://github.com/brettmclean/pad4pi"; 20 description = "Interrupt-based matrix keypad library for Raspberry Pi"; 21 license = licenses.lgpl3; 22 maintainers = with maintainers; [ onny ]; 23 }; 24}