2021-01-13 15:04:26 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, aiofiles
|
|
|
|
, aiohttp
|
|
|
|
, async_generator
|
|
|
|
, pypubsub
|
|
|
|
, pyserial
|
|
|
|
, pyserial-asyncio
|
|
|
|
, pyyaml
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, pytest-cov
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-timeout
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyinsteon";
|
2021-03-18 08:37:24 +00:00
|
|
|
version = "1.0.10";
|
2021-01-13 15:04:26 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-03-18 08:37:24 +00:00
|
|
|
sha256 = "sha256-8b/PvMFHvYGVWw6ycLnL8n972cn+1QW/VTMiblMPam4=";
|
2021-01-13 15:04:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiofiles
|
|
|
|
aiohttp
|
|
|
|
async_generator
|
|
|
|
pypubsub
|
|
|
|
pyserial
|
|
|
|
pyserial-asyncio
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-cov
|
|
|
|
pytest-timeout
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pyinsteon" ];
|
|
|
|
|
|
|
|
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";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|