2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
libgpiod,
|
2023-08-10 07:59:29 +00:00
|
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
|
|
inherit (libgpiod) pname version src;
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
buildInputs = [ libgpiod ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cd bindings/python
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Requires libgpiod built with --enable-tests
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "gpiod" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python bindings for libgpiod";
|
|
|
|
homepage = "https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/about/";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ lopsided98 ];
|
|
|
|
};
|
|
|
|
}
|