Files
nixpkgs/pkgs/development/python-modules/libgpiod/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

27 lines
564 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 = {
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 ];
};
}