1{ lib 2, aiohttp 3, xmltodict 4, buildPythonPackage 5, fetchFromGitHub 6}: 7 8buildPythonPackage rec { 9 pname = "omnilogic"; 10 version = "0.4.5"; 11 12 src = fetchFromGitHub { 13 owner = "djtimca"; 14 repo = "omnilogic-api"; 15 rev = version; 16 sha256 = "081awb0fl40b5ighc9yxfq1xkgxz7l5dvz5544hx965q2r20wvsg"; 17 }; 18 19 propagatedBuildInputs = [ 20 aiohttp 21 xmltodict 22 ]; 23 24 postPatch = '' 25 # Is not used but still present in setup.py 26 substituteInPlace setup.py --replace "'config'," "" 27 ''; 28 29 # Project has no tests 30 doCheck = false; 31 pythonImportsCheck = [ "omnilogic" ]; 32 33 meta = with lib; { 34 description = "Python interface for the Hayward Omnilogic pool control system"; 35 homepage = "https://github.com/djtimca/omnilogic-api"; 36 license = with licenses; [ asl20 ]; 37 maintainers = with maintainers; [ fab ]; 38 }; 39}