Merge pull request #108602 from mweinelt/home-assistant

home-assistant: 2020.12.2 -> 2021.1.0 (+entourage)
This commit is contained in:
Martin Weinelt
2021-01-07 14:46:56 +01:00
committed by GitHub
15 changed files with 155 additions and 71 deletions
@@ -1,33 +1,26 @@
{ lib, buildPythonPackage, fetchPypi, pytest, fetchpatch }:
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "h11";
version = "0.9.0";
version = "0.12.0";
src = fetchPypi {
inherit pname version;
sha256 = "1qfad70h59hya21vrzz8dqyyaiqhac0anl2dx3s3k80gpskvrm1k";
sha256 = "0hk0nll6qazsambp3kl8cxxsbl4gv5y9252qadyk0jky0sv2q8j7";
};
patches = [
# pytest5 compatability
(fetchpatch {
url = "https://github.com/python-hyper/h11/commit/241e220493a511a5f5a5d472cb88d72661a92ab1.patch";
sha256 = "1s3ipf9s41m1lksws3xv3j133q7jnjdqvmgk4sfnm8q7li2dww39";
})
];
checkInputs = [ pytest ];
checkPhase = ''
py.test
'';
checkInputs = [ pytestCheckHook ];
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "Pure-Python, bring-your-own-I/O implementation of HTTP/1.1";
homepage = "https://github.com/python-hyper/h11";
license = licenses.mit;
};
}
@@ -4,12 +4,12 @@
buildPythonPackage rec {
pname = "openwebifpy";
version = "3.1.1";
version = "3.2.7";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "0zqa74i54ww9qjciiv8s58mxbs6vxq06cq5k4pxfarc0l75l4gh2";
sha256 = "0n9vi6b0y8b41fd7m9p361y3qb5m3b9p9d8g4fasqi7yy4mw2hns";
};
propagatedBuildInputs = [
@@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, pytestCheckHook
, requests
, requests-mock
, sseclient-py
}:
buildPythonPackage rec {
pname = "pyarlo";
version = "0.2.4";
src = fetchFromGitHub {
owner = "tchellomello";
repo = "python-arlo";
rev = version;
sha256 = "0pp7y2llk4xnf6zh57j5xas0gw5zqm42qaqssd8p4qa3g5rds8k3";
};
propagatedBuildInputs = [
requests
sseclient-py
];
checkInputs = [
pytestCheckHook
mock
requests-mock
];
pythonImportsCheck = [ "pyarlo" ];
meta = with lib; {
description = "Python library to work with Netgear Arlo cameras";
homepage = "https://github.com/tchellomello/python-arlo";
license = with licenses; [ lgpl3Plus ];
maintainers = with maintainers; [ fab ];
};
}
@@ -1,4 +1,5 @@
{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, click
@@ -7,21 +8,26 @@
, uvloop
, websockets
, wsproto
, pytest
, pytestCheckHook
, pytest-mock
, pyyaml
, requests
, trustme
, typing-extensions
, isPy27
, pythonOlder
}:
buildPythonPackage rec {
pname = "uvicorn";
version = "0.11.5";
version = "0.13.2";
disabled = isPy27;
src = fetchFromGitHub {
owner = "encode";
repo = pname;
rev = version;
sha256 = "0cf0vw6kzxwlkvk5gw85wv3kg1kdil0wkq3s7rmxpvrk6gjk8jvq";
sha256 = "04zgmp9z46k72ay6cz7plga6d3w3a6x41anabm7ramp7jdqf6na9";
};
propagatedBuildInputs = [
@@ -31,25 +37,33 @@ buildPythonPackage rec {
uvloop
websockets
wsproto
] ++ lib.optionals (pythonOlder "3.8") [
typing-extensions
];
postPatch = ''
substituteInPlace setup.py \
--replace "h11==0.8.*" "h11" \
--replace "httptools==0.0.13" "httptools"
'';
checkInputs = [ pytest requests ];
checkInputs = [
pytestCheckHook
pytest-mock
pyyaml
requests
trustme
];
doCheck = !stdenv.isDarwin;
# watchgod required the watchgod package, which isn't available in nixpkgs
checkPhase = ''
pytest --ignore=tests/supervisors/test_watchgodreload.py \
-k 'not test_supported_upgrade_request and not test_invalid_upgrade[WSProtocol]'
'';
__darwinAllowLocalNetworking = true;
meta = with stdenv.lib; {
pytestFlagsArray = [
# watchgod required the watchgod package, which isn't available in nixpkgs
"--ignore=tests/supervisors/test_reload.py"
];
disabledTests = [
"test_supported_upgrade_request"
"test_invalid_upgrade"
];
meta = with lib; {
homepage = "https://www.uvicorn.org/";
description = "The lightning-fast ASGI server";
license = licenses.bsd3;
@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "voluptuous";
version = "0.12.0";
version = "0.12.1";
src = fetchPypi {
inherit pname version;
sha256 = "1p5j3fgbpqj31fajkaisdrz10ah9667sijz4kp3m0sbgw6ag4kis";
sha256 = "0js4avmhmmys78z376xk1w9305hq5nad8zqrnksgmpc1j90p4db6";
};
checkInputs = [ nose ];
@@ -1,19 +1,27 @@
{ lib, buildPythonPackage, fetchPypi
, aiohttp, zigpy, conftest, asynctest
, pytestCheckHook }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, zigpy
, conftest
, asynctest
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "zha-quirks";
version = "0.0.47";
version = "0.0.51";
src = fetchFromGitHub {
owner = "zigpy";
repo = "zha-device-handlers";
rev = version;
sha256 = "14v01kclf096ax88cd6ckfs8gcffqissli9vpr0wfzli08afmbi9";
};
propagatedBuildInputs = [ aiohttp zigpy ];
checkInputs = [ pytestCheckHook conftest asynctest ];
src = fetchPypi {
inherit pname version;
sha256 = "bf7dbd5d1c1a3849b059e62afcef248b6955f5ceef78f87201ae2fc8420738de";
};
meta = with lib; {
description = "ZHA Device Handlers are custom quirks implementations for Zigpy";
homepage = "https://github.com/dmulcahey/zha-device-handlers";
@@ -1,20 +1,29 @@
{ stdenv, buildPythonPackage, fetchPypi
, pyserial, pyserial-asyncio, zigpy
, pytest, pytest-asyncio, asynctest }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, pyserial
, pyserial-asyncio
, zigpy
, pytestCheckHook
, pytest-asyncio
, asynctest
}:
buildPythonPackage rec {
pname = "zigpy-deconz";
version = "0.11.0";
version = "0.11.1";
propagatedBuildInputs = [ pyserial pyserial-asyncio zigpy ];
checkInputs = [ pytest pytest-asyncio asynctest ];
src = fetchPypi {
inherit pname version;
sha256 = "a2263f8bc5807ebac55bb665eca553b514384ce270b66f83df02c39184193020";
src = fetchFromGitHub {
owner = "zigpy";
repo = pname;
rev = version;
sha256 = "1p9mdsfc200iyszppcflazzfwqg4v8nqqwqsx114nip5km7a5s37";
};
meta = with stdenv.lib; {
propagatedBuildInputs = [ pyserial pyserial-asyncio zigpy ];
checkInputs = [ pytestCheckHook pytest-asyncio asynctest ];
meta = with lib; {
description = "Library which communicates with Deconz radios for zigpy";
homepage = "https://github.com/zigpy/zigpy-deconz";
license = licenses.gpl3Plus;
@@ -12,7 +12,7 @@
buildPythonPackage rec {
pname = "zigpy-zigate";
version = "0.7.3";
version = "0.7.4";
# https://github.com/Martiusweb/asynctest/issues/152
# broken by upstream python bug with asynctest and
# is used exclusively by home-assistant with python 3.8
@@ -22,7 +22,7 @@ buildPythonPackage rec {
owner = "zigpy";
repo = "zigpy-zigate";
rev = version;
sha256 = "068v8n8yimmpnwqcdz5m9g35z1x0dir478cbc1s1nyhw1xn50vg1";
sha256 = "0xl8qgljvmypi602f52m89iv9pcrzsdal3jw619vrcavp40rc04d";
};
propagatedBuildInputs = [
@@ -45,6 +45,11 @@ buildPythonPackage rec {
pytestCheckHook
];
disabledTests = [
# zigpy-znp was too slow to sync up with the zigpy 0.29 release and has API breakage, remove >0.3.0
"test_force_remove"
];
meta = with stdenv.lib; {
description = "A library for zigpy which communicates with TI ZNP radios";
homepage = "https://github.com/zha-ng/zigpy-znp";
@@ -1,5 +1,6 @@
{ lib
, aiohttp
, aiosqlite
, asynctest
, buildPythonPackage
, crccheck
@@ -14,17 +15,18 @@
buildPythonPackage rec {
pname = "zigpy";
version = "0.26.0";
version = "0.29.0";
src = fetchFromGitHub {
owner = "zigpy";
repo = "zigpy";
rev = version;
sha256 = "ba8Ru6RCbFOHhctFtklnrxVD3uEpxF4XDvO5RMgXPBs=";
sha256 = "1r4i2ya9f241rls9mi24dksx4srrzi8agshnqy12rclxlh7qb1aw";
};
propagatedBuildInputs = [
aiohttp
aiosqlite
crccheck
pycrypto
pycryptodome