python3Packages.epaper-dithering: 0.6.4 -> 5.0.6

https://github.com/OpenDisplay/epaper-dithering/releases/tag/epaper-dithering-v5.0.6

Co-Authored-By: Martin Weinelt <hexa@darmstadt.ccc.de>
This commit is contained in:
Robert Schütz
2026-06-03 03:54:22 +02:00
committed by Martin Weinelt
parent ec9829f8e4
commit ad8945c779

View File

@@ -2,34 +2,49 @@
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
numpy,
pillow,
pytestCheckHook,
rustPlatform,
}:
buildPythonPackage (finalAttrs: {
pname = "epaper-dithering";
version = "0.6.4";
version = "5.0.6";
pyproject = true;
src = fetchFromGitHub {
owner = "OpenDisplay";
repo = "epaper-dithering";
tag = "python-v${finalAttrs.version}";
hash = "sha256-GWILjyzPg5mCDQ6jQw5o3v+gkbdxiHzSSVQkW3dC01I=";
tag = "epaper-dithering-v${finalAttrs.version}";
hash = "sha256-8xkgKOHS68aQWrJLNwUusZzXK7oAyjDvxd9c5aUDA84=";
};
sourceRoot = "${finalAttrs.src.name}/packages/python";
build-system = [ hatchling ];
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs)
pname
version
src
sourceRoot
;
hash = "sha256-RBOULCydXgTR8Snc1cecvW4KqGDLYjZsYwlJovuvN2I=";
};
nativeBuildInputs = [
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
];
dependencies = [
numpy
pillow
];
nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [
numpy
pytestCheckHook
];
pythonImportsCheck = [ "epaper_dithering" ];