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" ];