Merge pull request #120238 from fabaff/zwave-js-server-python

This commit is contained in:
Martin Weinelt 2021-04-22 19:25:53 +02:00 committed by GitHub
commit f3f3822dca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 44 additions and 1 deletions

View file

@ -0,0 +1,40 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pytest-aiohttp
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "zwave-js-server-python";
version = "0.23.1";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = pname;
rev = version;
sha256 = "0kmmhn357k22ana0ysd8jlz1fyfaqlc8k74ryaik0rrw7nmn1n11";
};
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
pytest-aiohttp
pytestCheckHook
];
pythonImportsCheck = [ "zwave_js_server" ];
meta = with lib; {
description = "Python wrapper for zwave-js-server";
homepage = "https://github.com/home-assistant-libs/zwave-js-server-python";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -984,6 +984,6 @@
"zone" = ps: with ps; [ ];
"zoneminder" = ps: with ps; [ zm-py ];
"zwave" = ps: with ps; [ aiohttp-cors homeassistant-pyozw paho-mqtt pydispatcher python-openzwave-mqtt ];
"zwave_js" = ps: with ps; [ aiohttp-cors ]; # missing inputs: zwave-js-server-python
"zwave_js" = ps: with ps; [ aiohttp-cors zwave-js-server-python ];
};
}

View file

@ -395,6 +395,7 @@ in with py.pkgs; buildPythonApplication rec {
"zha"
"zone"
"zwave"
"zwave_js"
];
pytestFlagsArray = [

View file

@ -9388,5 +9388,7 @@ in {
zulip = callPackage ../development/python-modules/zulip { };
zwave-js-server-python = callPackage ../development/python-modules/zwave-js-server-python { };
zxcvbn = callPackage ../development/python-modules/zxcvbn { };
}