2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiofiles,
|
|
|
|
aiohttp,
|
|
|
|
async-timeout,
|
|
|
|
async-generator,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pypubsub,
|
|
|
|
pyserial,
|
|
|
|
pyserial-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonAtLeast,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
voluptuous,
|
2021-01-15 22:18:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyinsteon";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.6.1";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2022-02-20 05:27:41 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-04-21 15:54:59 +00:00
|
|
|
owner = "pyinsteon";
|
|
|
|
repo = "pyinsteon";
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-s8YRDu+UpU1sisdscd87CpcLl3csOUDdIuKqx48GZsw=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2021-01-15 22:18:51 +00:00
|
|
|
aiofiles
|
|
|
|
aiohttp
|
2024-04-21 15:54:59 +00:00
|
|
|
async-timeout
|
2021-01-15 22:18:51 +00:00
|
|
|
pypubsub
|
|
|
|
pyserial
|
|
|
|
pyserial-asyncio
|
2023-03-04 12:14:45 +00:00
|
|
|
voluptuous
|
2021-01-15 22:18:51 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-08-10 07:59:29 +00:00
|
|
|
async-generator
|
2021-01-15 22:18:51 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
disabledTests = [
|
|
|
|
# RuntimeError: BUG: Dead Listener called, still subscribed!
|
|
|
|
"test_linking_with_i1_device"
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabledTestPaths = lib.optionals (pythonAtLeast "3.12") [
|
|
|
|
# Tests are blocking or failing
|
|
|
|
"tests/test_handlers/"
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "pyinsteon" ];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library to support Insteon home automation projects";
|
|
|
|
longDescription = ''
|
|
|
|
This is a Python package to interface with an Insteon Modem. It has been
|
|
|
|
tested to work with most USB or RS-232 serial based devices such as the
|
|
|
|
2413U, 2412S, 2448A7 and Hub models 2242 and 2245.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/pyinsteon/pyinsteon";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/pyinsteon/pyinsteon/releases/tag/${version}";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "insteon_tools";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
}
|