Skip to content

Commit

Permalink
Merge pull request #123727 from fabaff/envoy-reader
Browse files Browse the repository at this point in the history
python3Packages.envoy-reader: init at 0.19.0
  • Loading branch information
lukegb committed May 23, 2021
2 parents 554ed7e + a766776 commit ee0e711
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 1 deletion.
46 changes: 46 additions & 0 deletions pkgs/development/python-modules/envoy-reader/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, httpx
, pytest-asyncio
, pytest-raises
, pytest-runner
, pytestCheckHook
, respx
}:

buildPythonPackage rec {
pname = "envoy-reader";
version = "0.19.0";

src = fetchFromGitHub {
owner = "jesserizzo";
repo = "envoy_reader";
rev = version;
sha256 = "0jyrgm7dc6k66c94gadc69a6xsv2b48wn3b3rbpwgbssi5s7iiz6";
};

nativeBuildInputs = [
pytest-runner
];

propagatedBuildInputs = [
httpx
];

checkInputs = [
pytest-raises
pytest-asyncio
pytestCheckHook
respx
];

pythonImportsCheck = [ "envoy_reader" ];

meta = with lib; {
description = "Python module to read from Enphase Envoy units";
homepage = "https://github.com/jesserizzo/envoy_reader";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
2 changes: 1 addition & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
"emulated_roku" = ps: with ps; [ ]; # missing inputs: emulated_roku
"enigma2" = ps: with ps; [ openwebifpy ];
"enocean" = ps: with ps; [ ]; # missing inputs: enocean
"enphase_envoy" = ps: with ps; [ ]; # missing inputs: envoy_reader
"enphase_envoy" = ps: with ps; [ envoy-reader ];
"entur_public_transport" = ps: with ps; [ ]; # missing inputs: enturclient
"environment_canada" = ps: with ps; [ ]; # missing inputs: env_canada
"envirophat" = ps: with ps; [ smbus-cffi ]; # missing inputs: envirophat
Expand Down
1 change: 1 addition & 0 deletions pkgs/servers/home-assistant/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ in with py.pkgs; buildPythonApplication rec {
"efergy"
"emonitor"
"emulated_hue"
"enphase_envoy"
"esphome"
"everlights"
"ezviz"
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2221,6 +2221,8 @@ in {

envs = callPackage ../development/python-modules/envs { };

envoy-reader = callPackage ../development/python-modules/envoy-reader { };

enzyme = callPackage ../development/python-modules/enzyme { };

epc = callPackage ../development/python-modules/epc { };
Expand Down

0 comments on commit ee0e711

Please sign in to comment.