2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
prettytable,
|
|
|
|
pythonOlder,
|
|
|
|
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-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
prettytable
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +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 ];
|
|
|
|
};
|
|
|
|
}
|