summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/libgpiod/default.nix
blob: 6a1c3ca6f1d50d89a8aeb471f6f4ba2b932ce7c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
  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 = {
    description = "Python bindings for libgpiod";
    homepage = "https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/about/";
    license = lib.licenses.lgpl21Plus;
    maintainers = with lib.maintainers; [ lopsided98 ];
  };
}