python3Packages.omnilogic: init at 0.4.3

This commit is contained in:
Fabian Affolter 2021-04-09 18:44:41 +02:00
parent 41d8ec87b2
commit 61a5c65f0d
2 changed files with 41 additions and 0 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

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