From 223f02380c4e2627fe0f9f52e6404e602661d944 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 19 May 2021 22:38:58 +0200 Subject: [PATCH] python3Packages.envoy-reader: init at 0.19.0 --- .../python-modules/envoy-reader/default.nix | 46 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/envoy-reader/default.nix diff --git a/pkgs/development/python-modules/envoy-reader/default.nix b/pkgs/development/python-modules/envoy-reader/default.nix new file mode 100644 index 000000000000..d72db523a21c --- /dev/null +++ b/pkgs/development/python-modules/envoy-reader/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7bd3aa5da996..cc5cb5c84946 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2193,6 +2193,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 { };