Merge pull request #259541 from fabaff/pyecoforest
python311Packages.pyecoforest: init at 0.3.0
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, httpx
|
||||
, poetry-core
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, respx
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyecoforest";
|
||||
version = "0.3.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pjanuario";
|
||||
repo = "pyecoforest";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-GBt7uHppWLq5nIIVwYsOWmLjWjcwdvJwDE/Gu2KnSIA=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace "--cov=pyecoforest --cov-report=term-missing:skip-covered" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
httpx
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
respx
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pyecoforest"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Module for interacting with Ecoforest devices";
|
||||
homepage = "https://github.com/pjanuario/pyecoforest";
|
||||
changelog = "https://github.com/pjanuario/pyecoforest/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
@@ -957,7 +957,8 @@
|
||||
python-ecobee-api
|
||||
];
|
||||
"ecoforest" = ps: with ps; [
|
||||
]; # missing inputs: pyecoforest
|
||||
pyecoforest
|
||||
];
|
||||
"econet" = ps: with ps; [
|
||||
pyeconet
|
||||
];
|
||||
@@ -5133,6 +5134,7 @@
|
||||
"eafm"
|
||||
"easyenergy"
|
||||
"ecobee"
|
||||
"ecoforest"
|
||||
"econet"
|
||||
"ecowitt"
|
||||
"edl21"
|
||||
|
||||
@@ -9929,6 +9929,8 @@ self: super: with self; {
|
||||
|
||||
pyeclib = callPackage ../development/python-modules/pyeclib { };
|
||||
|
||||
pyecoforest = callPackage ../development/python-modules/pyecoforest { };
|
||||
|
||||
pyeconet = callPackage ../development/python-modules/pyeconet { };
|
||||
|
||||
pyecowitt = callPackage ../development/python-modules/pyecowitt { };
|
||||
|
||||
Reference in New Issue
Block a user