Merge pull request #123727 from fabaff/envoy-reader

python3Packages.envoy-reader: init at 0.19.0
This commit is contained in:
Luke Granger-Brown
2021-05-23 14:48:40 +01:00
committed by GitHub
4 changed files with 50 additions and 1 deletions

View File

@@ -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 ];
};
}