diff --git a/pkgs/development/python-modules/epson-projector/default.nix b/pkgs/development/python-modules/epson-projector/default.nix new file mode 100644 index 000000000000..756472222d8e --- /dev/null +++ b/pkgs/development/python-modules/epson-projector/default.nix @@ -0,0 +1,42 @@ +{ lib +, buildPythonPackage +, fetchPypi +, aiohttp +, async-timeout +, pyserial-asyncio +}: + +buildPythonPackage rec { + pname = "epson-projector"; + version = "0.4.2"; + + src = fetchPypi { + pname = "epson_projector"; + inherit version; + sha256 = "4ade1c7a0f7008d23b08bd886c8790c44cf7d60453d1eb5a8077c92aaf790d30"; + }; + + propagatedBuildInputs = [ + aiohttp + async-timeout + pyserial-asyncio + ]; + + # tests need real device + doCheck = false; + + pythonImportsCheck = [ + "epson_projector" + "epson_projector.const" + "epson_projector.projector_http" + "epson_projector.projector_serial" + "epson_projector.projector_tcp" + ]; + + meta = with lib; { + description = "Epson projector support for Python"; + homepage = "https://github.com/pszafer/epson_projector"; + license = licenses.mit; + maintainers = with maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 12b9b81a8bb9..70c998280c5a 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -232,7 +232,7 @@ "envirophat" = ps: with ps; [ smbus-cffi ]; # missing inputs: envirophat "envisalink" = ps: with ps; [ pyenvisalink ]; "ephember" = ps: with ps; [ ]; # missing inputs: pyephember - "epson" = ps: with ps; [ ]; # missing inputs: epson-projector + "epson" = ps: with ps; [ epson-projector ]; "epsonworkforce" = ps: with ps; [ ]; # missing inputs: epsonprinter "eq3btsmart" = ps: with ps; [ construct ]; # missing inputs: python-eq3bt "esphome" = ps: with ps; [ aioesphomeapi aiohttp-cors ifaddr zeroconf ]; diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 113a812f803c..be14c4540052 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -373,6 +373,7 @@ in with py.pkgs; buildPythonApplication rec { "emulated_hue" "emulated_kasa" "enphase_envoy" + "epson" "esphome" "everlights" "ezviz" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 11534d3970ec..bf018b852b7e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2299,6 +2299,8 @@ in { ephem = callPackage ../development/python-modules/ephem { }; + epson-projector = callPackage ../development/python-modules/epson-projector { }; + eradicate = callPackage ../development/python-modules/eradicate { }; escapism = callPackage ../development/python-modules/escapism { };