mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-09 06:43:36 +00:00
On PyPI the package is called gpiod and that's also what's listed as its name in the METADATA file.
31 lines
620 B
Nix
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 ];
|
|
};
|
|
}
|