ca5ab3a501
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
41 lines
804 B
Nix
41 lines
804 B
Nix
{ lib
|
|
, aiohttp
|
|
, xmltodict
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "omnilogic";
|
|
version = "0.5.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "djtimca";
|
|
repo = "omnilogic-api";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-ySK2T5T+Qdq8nVQqluIARR89KmM1N3oD44oLydwcs7E=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
xmltodict
|
|
];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|