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