2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
|
|
|
, pythonOlder
|
2023-03-27 19:17:25 +00:00
|
|
|
, requests
|
2022-04-27 09:35:20 +00:00
|
|
|
, websocket-client
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zwave-me-ws";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "0.4.2";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Z-Wave-Me";
|
|
|
|
repo = pname;
|
2022-09-11 15:47:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-Wo67G5jzNDl+70+pXEwCw4vck3Dlh7ClpPO6T7RYdBc=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2023-03-27 19:17:25 +00:00
|
|
|
requests
|
2022-04-27 09:35:20 +00:00
|
|
|
websocket-client
|
|
|
|
];
|
|
|
|
|
|
|
|
# Module has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"zwave_me_ws"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library to connect to a ZWave-Me instance";
|
|
|
|
homepage = "https://github.com/Z-Wave-Me/zwave-me-ws";
|
2023-02-09 11:40:11 +00:00
|
|
|
changelog = "https://github.com/Z-Wave-Me/zwave-me-ws/releases/tag/v${version}";
|
2022-04-27 09:35:20 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|