2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
rpi-gpio,
|
|
|
|
}:
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pad4pi";
|
|
|
|
version = "1.1.5";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-+oVYlqF5PQAFz4EO1ap6pjmYTLg9xQy6UbQja4utt2Q=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ rpi-gpio ];
|
|
|
|
|
|
|
|
# Checks depend on rpi-gpio which requires to be run on a Raspberry Pi,
|
|
|
|
# therefore it fails on other systems
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/brettmclean/pad4pi";
|
|
|
|
description = "Interrupt-based matrix keypad library for Raspberry Pi";
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
maintainers = with maintainers; [ onny ];
|
|
|
|
};
|
|
|
|
}
|