2023-02-02 18:25:31 +00:00
|
|
|
{ lib
|
2024-01-02 11:29:13 +00:00
|
|
|
, aiohttp
|
2023-02-02 18:25:31 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, prettytable
|
2023-02-16 17:41:37 +00:00
|
|
|
, pythonOlder
|
2024-01-02 11:29:13 +00:00
|
|
|
, setuptools
|
2023-02-02 18:25:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiosomecomfort";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.0.25";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2023-02-02 18:25:31 +00:00
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mkmer";
|
|
|
|
repo = "AIOSomecomfort";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-EmglZW9gzgswxoEtDT+evjn8N+3aPooYFudwAXP8XEE=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
prettytable
|
|
|
|
];
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"aiosomecomfort"
|
2023-02-02 18:25:31 +00:00
|
|
|
];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
# Tests only run on Windows, due to WindowsSelectorEventLoopPolicy
|
|
|
|
doCheck = false;
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "AsyicIO client for US models of Honeywell Thermostats";
|
|
|
|
homepage = "https://github.com/mkmer/AIOSomecomfort";
|
2023-02-16 17:41:37 +00:00
|
|
|
changelog = "https://github.com/mkmer/AIOSomecomfort/releases/tag/${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|