depot/third_party/nixpkgs/pkgs/development/python-modules/libgpiod/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

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 ];
};
}