Files
Robert Schütz adf2ec46c7 python3Packages.gpiod: rename from libgpiod
On PyPI the package is called gpiod and that's also what's listed as its
name in the METADATA file.
2026-03-30 10:10:04 -07:00

31 lines
620 B
Nix

{
lib,
buildPythonPackage,
libgpiod,
setuptools,
}:
buildPythonPackage {
pname = "gpiod";
inherit (libgpiod) version src;
pyproject = true;
build-system = [ 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 ];
};
}