d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
25 lines
561 B
Nix
25 lines
561 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 ];
|
|
};
|
|
}
|