fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
26 lines
566 B
Nix
26 lines
566 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
libgpiod,
|
|
}:
|
|
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 ];
|
|
};
|
|
}
|