Merge pull request #118919 from fabaff/omnilogic

This commit is contained in:
Sandro 2021-04-09 21:57:00 +02:00 committed by GitHub
commit cbdbd24665
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 43 additions and 1 deletions

View File

@ -0,0 +1,39 @@
{ lib
, aiohttp
, xmltodict
, buildPythonPackage
, fetchFromGitHub
}:
buildPythonPackage rec {
pname = "omnilogic";
version = "0.4.3";
src = fetchFromGitHub {
owner = "djtimca";
repo = "omnilogic-api";
rev = "v${version}";
sha256 = "19pmbykq0mckk23aj33xbhg3gjx557xy9a481mp6pkmihf2lsc8z";
};
propagatedBuildInputs = [
aiohttp
xmltodict
];
postPatch = ''
# Is not used but still present in setup.py
substituteInPlace setup.py --replace "'config'," ""
'';
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "omnilogic" ];
meta = with lib; {
description = "Python interface for the Hayward Omnilogic pool control system";
homepage = "https://github.com/djtimca/omnilogic-api";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -581,7 +581,7 @@
"oem" = ps: with ps; [ ]; # missing inputs: oemthermostat "oem" = ps: with ps; [ ]; # missing inputs: oemthermostat
"ohmconnect" = ps: with ps; [ defusedxml ]; "ohmconnect" = ps: with ps; [ defusedxml ];
"ombi" = ps: with ps; [ ]; # missing inputs: pyombi "ombi" = ps: with ps; [ ]; # missing inputs: pyombi
"omnilogic" = ps: with ps; [ ]; # missing inputs: omnilogic "omnilogic" = ps: with ps; [ omnilogic ];
"onboarding" = ps: with ps; [ aiohttp-cors pillow ]; "onboarding" = ps: with ps; [ aiohttp-cors pillow ];
"ondilo_ico" = ps: with ps; [ aiohttp-cors ]; # missing inputs: ondilo "ondilo_ico" = ps: with ps; [ aiohttp-cors ]; # missing inputs: ondilo
"onewire" = ps: with ps; [ ]; # missing inputs: pi1wire pyownet "onewire" = ps: with ps; [ ]; # missing inputs: pi1wire pyownet

View File

@ -286,6 +286,7 @@ in with py.pkgs; buildPythonApplication rec {
"notify" "notify"
"notion" "notion"
"number" "number"
"omnilogic"
"ozw" "ozw"
"panel_custom" "panel_custom"
"panel_iframe" "panel_iframe"

View File

@ -4801,6 +4801,8 @@ in {
omegaconf = callPackage ../development/python-modules/omegaconf { }; omegaconf = callPackage ../development/python-modules/omegaconf { };
omnilogic = callPackage ../development/python-modules/omnilogic { };
onkyo-eiscp = callPackage ../development/python-modules/onkyo-eiscp { }; onkyo-eiscp = callPackage ../development/python-modules/onkyo-eiscp { };
onnx = callPackage ../development/python-modules/onnx { }; onnx = callPackage ../development/python-modules/onnx { };