2021-09-27 07:36:39 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, poetry-core
|
|
|
|
, pyserial-asyncio
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "elkm1-lib";
|
2022-05-09 17:40:10 +01:00
|
|
|
version = "2.0.0";
|
2021-09-27 07:36:39 +01:00
|
|
|
format = "pyproject";
|
|
|
|
|
2022-05-09 17:40:10 +01:00
|
|
|
disabled = pythonOlder "3.9";
|
2021-09-27 07:36:39 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gwww";
|
|
|
|
repo = "elkm1";
|
|
|
|
rev = version;
|
2022-05-09 17:40:10 +01:00
|
|
|
hash = "sha256-o0RQgAP38W7paVJonrfj54y2OhMmTihT9xiipEyNVaM=";
|
2021-09-27 07:36:39 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyserial-asyncio
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-03-28 07:44:44 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"elkm1_lib"
|
|
|
|
];
|
2021-09-27 07:36:39 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module for interacting with ElkM1 alarm/automation panel";
|
|
|
|
homepage = "https://github.com/gwww/elkm1";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|