2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
aiohttp,
|
|
|
|
xmltodict,
|
2024-09-19 14:19:46 +00:00
|
|
|
python-socketio-v4,
|
2024-06-05 15:53:02 +00:00
|
|
|
websocket-client,
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pycontrol4";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.2.1";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2023-02-22 10:55:15 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lawtancool";
|
|
|
|
repo = "pyControl4";
|
2024-01-02 11:29:13 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-0ZuztqHbrd+kMDGv3xyUYoTF/Ho+oHkycjSrKz8JABM=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
2023-02-22 10:55:15 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [
|
2021-06-28 23:13:55 +00:00
|
|
|
aiohttp
|
|
|
|
xmltodict
|
2024-09-19 14:19:46 +00:00
|
|
|
python-socketio-v4
|
2023-02-22 10:55:15 +00:00
|
|
|
websocket-client
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# tests access network
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyControl4.account"
|
|
|
|
"pyControl4.alarm"
|
|
|
|
"pyControl4.director"
|
|
|
|
"pyControl4.light"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://github.com/lawtancool/pyControl4/releases/tag/v${version}";
|
2021-06-28 23:13:55 +00:00
|
|
|
description = "Python 3 asyncio package for interacting with Control4 systems";
|
|
|
|
homepage = "https://github.com/lawtancool/pyControl4";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|