1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, poetry-core
5, pythonOlder
6, requests
7, websocket-client
8}:
9
10buildPythonPackage rec {
11 pname = "zwave-me-ws";
12 version = "0.4.3";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchFromGitHub {
18 owner = "Z-Wave-Me";
19 repo = pname;
20 rev = "refs/tags/v${version}";
21 hash = "sha256-bTchtgr+UbHCpcXMaQA3bTrhasJ79TguvAqLNlpD/2c=";
22 };
23
24 nativeBuildInputs = [
25 poetry-core
26 ];
27
28 propagatedBuildInputs = [
29 requests
30 websocket-client
31 ];
32
33 # Module has no tests
34 doCheck = false;
35
36 pythonImportsCheck = [
37 "zwave_me_ws"
38 ];
39
40 meta = with lib; {
41 description = "Library to connect to a ZWave-Me instance";
42 homepage = "https://github.com/Z-Wave-Me/zwave-me-ws";
43 changelog = "https://github.com/Z-Wave-Me/zwave-me-ws/releases/tag/v${version}";
44 license = with licenses; [ mit ];
45 maintainers = with maintainers; [ fab ];
46 };
47}