@@ -0,0 +1,40 @@
1+{ lib
2+, aiohttp
3+, buildPythonPackage
4+, fetchFromGitHub
5+, pytest-aiohttp
6+, pytestCheckHook
7+, pythonOlder
8+}:
9+
10+buildPythonPackage rec {
11+ pname = "zwave-js-server-python";
12+ version = "0.23.1";
13+ disabled = pythonOlder "3.8";
14+
15+
16+ src = fetchFromGitHub {
17+ owner = "home-assistant-libs";
18+ repo = pname;
19+ rev = version;
20+ sha256 = "0kmmhn357k22ana0ysd8jlz1fyfaqlc8k74ryaik0rrw7nmn1n11";
21+ };
22+
23+ propagatedBuildInputs = [
24+ aiohttp
25+ ];
26+
27+ checkInputs = [
28+ pytest-aiohttp
29+ pytestCheckHook
30+ ];
31+
32+ pythonImportsCheck = [ "zwave_js_server" ];
33+
34+ meta = with lib; {
35+ description = "Python wrapper for zwave-js-server";
36+ homepage = "https://github.com/home-assistant-libs/zwave-js-server-python";
37+ license = with licenses; [ asl20 ];
38+ maintainers = with maintainers; [ fab ];
39+ };
40+}