Files
nixpkgs/pkgs/development/python-modules/luma-core/default.nix
2026-08-07 22:59:24 +00:00

54 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pillow,
smbus2,
pyftdi,
cbor2,
rpi-gpio,
spidev,
}:
buildPythonPackage rec {
pname = "luma-core";
version = "2.6.0";
src = fetchPypi {
pname = "luma_core";
inherit version;
hash = "sha256-PdtnP5aZoUjTzP7imFRRsB3dS06ma2WpZkzjaAbPQRw=";
};
build-system = [ setuptools ];
pyproject = true;
dependencies = [
pillow
smbus2
cbor2
]
++ optional-dependencies.complete;
optional-dependencies = {
gpio = [ rpi-gpio ];
spi = [ spidev ];
ftdi = [ pyftdi ];
complete = with optional-dependencies; gpio ++ spi ++ ftdi;
};
meta = {
description = "Pillow-compatible drawing canvas library for SBCs";
longDescription = ''
A component library providing a Pillow-compatible drawing canvas,
and other functionality to support drawing primitives and text-rendering
capabilities for small displays on the Raspberry Pi and other single
board computers.
'';
homepage = "https://luma-core.readthedocs.io/";
changelog = "https://github.com/rm-hull/luma.core/blob/${version}/CHANGES.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ eymeric ];
};
}