1{
2 lib,
3 buildPythonPackage,
4 libgpiod,
5}:
6buildPythonPackage {
7 inherit (libgpiod) pname version src;
8 format = "setuptools";
9
10 buildInputs = [ libgpiod ];
11
12 preConfigure = ''
13 cd bindings/python
14 '';
15
16 # Requires libgpiod built with --enable-tests
17 doCheck = false;
18 pythonImportsCheck = [ "gpiod" ];
19
20 meta = with lib; {
21 description = "Python bindings for libgpiod";
22 homepage = "https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/about/";
23 license = licenses.lgpl21Plus;
24 maintainers = with maintainers; [ lopsided98 ];
25 };
26}