From ad8945c779669c425214a5424ee12fef840fca31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 3 Jun 2026 03:54:22 +0200 Subject: [PATCH] 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 --- .../epaper-dithering/default.nix | 29 ++++++++++++++----- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/epaper-dithering/default.nix b/pkgs/development/python-modules/epaper-dithering/default.nix index d8344051d611..7738fce8cfef 100644 --- a/pkgs/development/python-modules/epaper-dithering/default.nix +++ b/pkgs/development/python-modules/epaper-dithering/default.nix @@ -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" ];