diff --git a/pkgs/development/python-modules/pyomie/default.nix b/pkgs/development/python-modules/pyomie/default.nix new file mode 100644 index 000000000000..3709034e38d2 --- /dev/null +++ b/pkgs/development/python-modules/pyomie/default.nix @@ -0,0 +1,55 @@ +{ + lib, + aiohttp, + aioresponses, + buildPythonPackage, + deepdiff, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytest-cov-stub, + pytestCheckHook, + rich, + typer, +}: + +buildPythonPackage (finalAttrs: { + pname = "pyomie"; + version = "1.1.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "luuuis"; + repo = "pyomie"; + tag = "v${finalAttrs.version}"; + hash = "sha256-BOaOClTXeoRxWb2aJKN6+lQRCLAShvHPXsUZBbH0mno="; + }; + + build-system = [ poetry-core ]; + + pythonRelaxDeps = [ "typer" ]; + + dependencies = [ + aiohttp + rich + typer + ]; + + nativeCheckInputs = [ + aioresponses + deepdiff + pytest-asyncio + pytest-cov-stub + pytestCheckHook + ]; + + pythonImportsCheck = [ "pyomie" ]; + + meta = { + description = "Client for OMIE - Spain and Portugal electricity market data"; + homepage = "https://github.com/luuuis/pyomie"; + changelog = "https://github.com/luuuis/pyomie/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.asl20; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +}) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 33d1c2c1494d..0e2c0a3f0026 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -4481,7 +4481,8 @@ ]; "omie" = ps: with ps; [ - ]; # missing inputs: pyomie + pyomie + ]; "omnilogic" = ps: with ps; [ omnilogic @@ -8106,6 +8107,7 @@ "octoprint" "ohme" "ollama" + "omie" "omnilogic" "onboarding" "oncue" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index db2987c015a8..d4cd41b8397b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14580,6 +14580,8 @@ self: super: with self; { pyombi = callPackage ../development/python-modules/pyombi { }; + pyomie = callPackage ../development/python-modules/pyomie { }; + pyomo = callPackage ../development/python-modules/pyomo { }; pyopen-wakeword = callPackage ../development/python-modules/pyopen-wakeword/default.nix { };