2021-12-19 01:06:50 +00:00
|
|
|
{ lib
|
2022-08-21 13:32:41 +00:00
|
|
|
, bleak
|
|
|
|
, bleak-retry-connector
|
2021-12-19 01:06:50 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cometblue-lite";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "0.7.0";
|
2021-12-19 01:06:50 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "neffs";
|
|
|
|
repo = "python-cometblue_lite";
|
2023-02-02 18:25:31 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-Cjd7PdZ2/neRr1jStDY5iJaGMJ/srnFmCea8aLNan6g=";
|
2021-12-19 01:06:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-08-21 13:32:41 +00:00
|
|
|
bleak
|
|
|
|
bleak-retry-connector
|
2021-12-19 01:06:50 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Module has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"cometblue_lite"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-08-21 13:32:41 +00:00
|
|
|
description = "Module for Eurotronic Comet Blue thermostats";
|
2021-12-19 01:06:50 +00:00
|
|
|
homepage = "https://github.com/neffs/python-cometblue_lite";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|