python3Packages.luma-core: init at 2.5.1 (#430477)

This commit is contained in:
Sandro
2025-11-23 03:19:33 +00:00
committed by GitHub
2 changed files with 55 additions and 0 deletions
@@ -0,0 +1,53 @@
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pillow,
smbus2,
pyftdi,
cbor2,
rpi-gpio,
spidev,
}:
buildPythonPackage rec {
pname = "luma-core";
version = "2.5.1";
src = fetchPypi {
pname = "luma_core";
inherit version;
hash = "sha256-m4j76GiYnsRHfiEP4pk+d0p0Jdfeg3iBQQn5i+MsplM=";
};
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 ];
};
}
+2
View File
@@ -8996,6 +8996,8 @@ self: super: with self; {
luhn = callPackage ../development/python-modules/luhn { };
luma-core = callPackage ../development/python-modules/luma-core { };
luna-soc = callPackage ../development/python-modules/luna-soc { };
luna-usb = callPackage ../development/python-modules/luna-usb { };