Unverified Commit 507e985c authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

python3Packages.py-opendisplay: init at 5.5.0 (#506835)

parents 3fa0b268 259d735b
Loading
Loading
Loading
Loading
+43 −0
Original line number Diff line number Diff line
{
  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 ];
  };
})
+51 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  hatchling,
  bleak,
  bleak-retry-connector,
  epaper-dithering,
  numpy,
  pillow,
  pytestCheckHook,
  pytest-asyncio,
}:

buildPythonPackage (finalAttrs: {
  pname = "py-opendisplay";
  version = "5.5.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "OpenDisplay";
    repo = "py-opendisplay";
    tag = "v${finalAttrs.version}";
    hash = "sha256-pPV4Ir9GK++66qq5QGnwyjpBinK7EvI7C7HB14tFDXU=";
  };

  build-system = [ hatchling ];

  dependencies = [
    bleak
    bleak-retry-connector
    epaper-dithering
    numpy
    pillow
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-asyncio
  ];

  pythonImportsCheck = [ "opendisplay" ];

  meta = {
    description = "Python library for communicating with OpenDisplay BLE e-paper displays";
    homepage = "https://github.com/OpenDisplay/py-opendisplay";
    changelog = "https://github.com/OpenDisplay/py-opendisplay/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
})
+3 −1
Original line number Diff line number Diff line
@@ -4536,11 +4536,12 @@
        home-assistant-intents
        ifaddr
        mutagen
        py-opendisplay
        pymicro-vad
        pyserial
        pyspeex-noise
        zeroconf
      ]; # missing inputs: py-opendisplay
      ];
    "openerz" =
      ps: with ps; [
        openerz-api
@@ -8018,6 +8019,7 @@
    "open_router"
    "openai_conversation"
    "openalpr_cloud"
    "opendisplay"
    "openerz"
    "openevse"
    "openexchangerates"
+4 −0
Original line number Diff line number Diff line
@@ -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 { };
@@ -13147,6 +13149,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 { };