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