diff --git a/pkgs/development/python-modules/epaper-dithering/default.nix b/pkgs/development/python-modules/epaper-dithering/default.nix new file mode 100644 index 000000000000..be30e1abe96b --- /dev/null +++ b/pkgs/development/python-modules/epaper-dithering/default.nix @@ -0,0 +1,43 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + numpy, + pillow, + pytestCheckHook, +}: + +buildPythonPackage (finalAttrs: { + pname = "epaper-dithering"; + version = "0.6.3"; + pyproject = true; + + src = fetchFromGitHub { + owner = "OpenDisplay"; + repo = "epaper-dithering"; + tag = "python-v${finalAttrs.version}"; + hash = "sha256-h84AgWJR8zVuwoz02A3U82yTOw4MSK9DjaxkYi0nWkM="; + }; + + sourceRoot = "${finalAttrs.src.name}/packages/python"; + + build-system = [ hatchling ]; + + dependencies = [ + numpy + pillow + ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "epaper_dithering" ]; + + meta = { + description = "Dithering algorithms for e-paper/e-ink displays"; + homepage = "https://github.com/OpenDisplay/epaper-dithering"; + changelog = "https://github.com/OpenDisplay/epaper-dithering/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d08f34e023de..19a3223f5634 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5054,6 +5054,8 @@ self: super: with self; { enzyme = callPackage ../development/python-modules/enzyme { }; + epaper-dithering = callPackage ../development/python-modules/epaper-dithering { }; + epc = callPackage ../development/python-modules/epc { }; ephem = callPackage ../development/python-modules/ephem { }; @@ -13145,6 +13147,8 @@ self: super: with self; { py-ocsf-models = callPackage ../development/python-modules/py-ocsf-models { }; + py-opendisplay = callPackage ../development/python-modules/py-opendisplay { }; + py-opensonic = callPackage ../development/python-modules/py-opensonic { }; py-partiql-parser = callPackage ../development/python-modules/py-partiql-parser { };