Merge pull request #125445 from mweinelt/home-assistant

This commit is contained in:
Martin Weinelt
2021-06-11 22:15:30 +02:00
committed by GitHub
28 changed files with 363 additions and 104 deletions

View File

@@ -2,7 +2,7 @@
, buildPythonPackage
, cryptography
, fetchFromGitHub
, poetry
, poetry-core
, pytest-aiohttp
, pytestCheckHook
, pythonAtLeast
@@ -11,7 +11,7 @@
buildPythonPackage rec {
pname = "aiohomekit";
version = "0.2.62";
version = "0.2.67";
format = "pyproject";
disabled = pythonAtLeast "3.9";
@@ -19,10 +19,12 @@ buildPythonPackage rec {
owner = "Jc2k";
repo = pname;
rev = version;
sha256 = "sha256-01IzeR0iukPTkz8I7h93wZkgjz6flRAJN8unEX6d+cs=";
sha256 = "04421p0dq7xh7rhx8ip177g2b91lhlc2yziqxbs9yxd1qyzwiqj1";
};
nativeBuildInputs = [ poetry ];
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
cryptography
@@ -34,11 +36,9 @@ buildPythonPackage rec {
pytestCheckHook
];
# Some test requires network access
disabledTests = [
"test_remove_pairing"
"test_pair"
"test_add_and_remove_pairings"
disabledTestPaths = [
# Tests require network access
"tests/test_ip_pairing.py"
];
pythonImportsCheck = [ "aiohomekit" ];

View File

@@ -6,11 +6,11 @@
buildPythonPackage rec {
pname = "aiohue";
version = "2.3.1";
version = "2.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "1qxvqqsflcn263yg7r8vvfc2c2fl3rh4dkzwzh926ijnbc2sk4nm";
sha256 = "sha256-4q5JvkUmEoOomcwblXhvB/5Qdr6aMR0lDb4t4bjDjw8=";
};
propagatedBuildInputs = [

View File

@@ -8,14 +8,14 @@
buildPythonPackage rec {
pname = "aiolyric";
version = "1.0.6";
version = "1.0.7";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "timmo001";
repo = pname;
rev = "v${version}";
sha256 = "1lnzsdw6kvgk0762f3vyw4xfzn7qkvsff16q61gm0ryjqg9j8whx";
sha256 = "sha256-3UyWUsamluJclwrQD+MuUPLhNJoNU4/8w1m92OLWyrg=";
};
propagatedBuildInputs = [ aiohttp ];

View File

@@ -12,14 +12,14 @@
buildPythonPackage rec {
pname = "aiorecollect";
version = "1.0.4";
version = "1.0.5";
format = "pyproject";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
sha256 = "sha256-A4qk7eo4maCRP4UmtWrRCPvG6YrLVSOiOcfN8pEj5Po=";
sha256 = "0h76l0pahnmls0radknzm8dw79qx9dv0xhxqnn6011j9fwyviyqm";
};
nativeBuildInputs = [

View File

@@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, cryptography
, fetchFromGitHub
, getmac
, pythonOlder
, requests
, zeroconf
}:
buildPythonPackage rec {
pname = "boschshcpy";
version = "0.2.18";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "tschamm";
repo = pname;
rev = version;
sha256 = "08bfg3g0hifjaa17d4zmws2ikbijdm0b98svgj8jdcl8v0nlqx69";
};
propagatedBuildInputs = [
cryptography
getmac
requests
zeroconf
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "boschshcpy" ];
meta = with lib; {
description = "Python module to work with the Bosch Smart Home Controller API";
homepage = "https://github.com/tschamm/boschshcpy";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -1,20 +1,25 @@
{ lib, fetchFromGitHub, buildPythonPackage, isPy27, requests }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "bravia-tv";
version = "1.0.8";
disabled = isPy27;
version = "1.0.11";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "dcnielsen90";
repo = "python-bravia-tv";
rev = "v${version}";
sha256 = "0djwy4z1y173q3mnbngp754yrwzmm6h3x0rshvrvd64b78x1bsmp";
sha256 = "sha256-g47bDd5bZl0jad3o6T1jJLcnZj8nx944kz3Vxv8gD2U=";
};
propagatedBuildInputs = [ requests ];
# package does not include tests
# Package does not include tests
doCheck = false;
pythonImportsCheck = [ "bravia_tv" ];

View File

@@ -7,14 +7,14 @@
buildPythonPackage rec {
pname = "garages-amsterdam";
version = "2.1.0";
version = "2.1.1";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "klaasnicolaas";
repo = "garages_amsterdam";
rev = version;
sha256 = "1lg66g0im6v0m294j82229n2b7bhs6kkrp0d9nh87k2rz7zgllil";
sha256 = "1m0bc3bzb83apprk412s7k5r2g6p5br2hrak2a976lh9ifk1d8hj";
};
propagatedBuildInputs = [

View File

@@ -0,0 +1,55 @@
{ lib
, aiohttp
, aioresponses
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytest-error-for-skips
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "gios";
version = "1.0.1";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bieniu";
repo = pname;
rev = version;
sha256 = "031z5j1j961pcw8s4ajj5z2xn2jxb2hyfn3x3bxbaagwl9a5qkvn";
};
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
aioresponses
pytest-asyncio
pytest-error-for-skips
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov --cov-report term-missing " ""
substituteInPlace setup.py \
--replace "pytest-runner" ""
'';
disabledTests = [
# Test requires network access
"test_invalid_station_id"
];
pythonImportsCheck = [ "gios" ];
meta = with lib; {
description = "Python client for getting air quality data from GIOS";
homepage = "https://github.com/bieniu/gios";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "growattserver";
version = "1.0.1";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "indykoning";
repo = "PyPi_GrowattServer";
rev = version;
sha256 = "1vgb92axlz1kkszmamjbsqgi74afnbr2mc1np3pmbn3bx5rmk1d9";
};
propagatedBuildInputs = [
requests
];
postPatch = ''
# https://github.com/indykoning/PyPi_GrowattServer/issues/2
substituteInPlace setup.py \
--replace "tag = os.environ['LATEST_TAG']" "" \
--replace "version=tag," 'version="${version}",'
'';
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "growattServer" ];
meta = with lib; {
description = "Python package to retrieve information from Growatt units";
homepage = "https://github.com/indykoning/PyPi_GrowattServer";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -16,16 +16,16 @@
}:
buildPythonPackage rec {
pname = "HAP-python";
version = "3.4.1";
pname = "hap-python";
version = "3.5.0";
disabled = pythonOlder "3.5";
# pypi package does not include tests
src = fetchFromGitHub {
owner = "ikalchev";
repo = pname;
repo = "HAP-python";
rev = "v${version}";
sha256 = "sha256-tZ6Zwlx5J62Xqpxxmt8Phdd9ngtKYhP/p3uor1dRfK8=";
sha256 = "1vzlfx0gpidl0rzv4z94pziwm6rj4lrilly5pykgq984y708pcqf";
};
propagatedBuildInputs = [

View File

@@ -0,0 +1,60 @@
{ lib
, asynctest
, buildPythonPackage
, click
, defusedxml
, dicttoxml
, fetchFromGitHub
, httpx
, pycryptodome
, pytest-asyncio
, pytest-raises
, pytestCheckHook
, pythonOlder
, respx
, typing-extensions
}:
buildPythonPackage rec {
pname = "ismartgate";
version = "4.0.1";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bdraco";
repo = pname;
rev = "v${version}";
sha256 = "1kxlcjnppsk8m93gfcpy3asig1frhp1k5rfqx3rszhkcxmni95m2";
};
propagatedBuildInputs = [
click
defusedxml
dicttoxml
httpx
pycryptodome
typing-extensions
];
checkInputs = [
asynctest
pytest-asyncio
pytest-raises
pytestCheckHook
respx
];
postPatch = ''
substituteInPlace setup.py \
--replace '"pytest-runner>=5.2",' ""
'';
pythonImportsCheck = [ "ismartgate" ];
meta = with lib; {
description = "Python module to work with the ismartgate and gogogate2 API";
homepage = "https://github.com/bdraco/ismartgate";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -9,14 +9,14 @@
buildPythonPackage rec {
pname = "nexia";
version = "0.9.6";
version = "0.9.7";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "bdraco";
repo = pname;
rev = version;
sha256 = "1k8h1p2zqm8gghff03jh8q3zik7jw2l686cyyg36r3qrgz6zi19q";
sha256 = "sha256-1oBrDr8QAUe6LLBliR/sNwDlLuisxOWPeI9sxuJtGxU=";
};
propagatedBuildInputs = [

View File

@@ -8,14 +8,14 @@
buildPythonPackage rec {
pname = "openhomedevice";
version = "1.0.0";
version = "2.0.1";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "bazwilliams";
repo = pname;
rev = version;
sha256 = "04qdlyzc8xsk7qxyn9l59pbwnlw49zknw0r5lqwx402va12g4ra0";
sha256 = "sha256-BQgwXg15+xEGfPm0HJWpKXbNuCgc0VcAD5AuVSDXd8g=";
};
propagatedBuildInputs = [

View File

@@ -2,24 +2,26 @@
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, aiohttp
, oauthlib
, requests
, requests_oauthlib
, freezegun
, pytest-asyncio
, pytestCheckHook
, requests-mock
}:
buildPythonPackage rec {
pname = "pyatmo";
version = "4.2.3";
version = "5.0.1";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "jabesq";
repo = "pyatmo";
rev = "v${version}";
sha256 = "sha256-hbs+1x/pwv00dhm+1Yj1effddJZHDjs2K3oeBmdCY+k=";
sha256 = "0can9v602iqfn0l01fd7gr63qzvcngfm0qka4s1x0pldh6avxmfh";
};
postPatch = ''
@@ -29,6 +31,7 @@ buildPythonPackage rec {
'';
propagatedBuildInputs = [
aiohttp
oauthlib
requests
requests_oauthlib
@@ -36,6 +39,7 @@ buildPythonPackage rec {
checkInputs = [
freezegun
pytest-asyncio
pytestCheckHook
requests-mock
];

View File

@@ -8,14 +8,14 @@
buildPythonPackage rec {
pname = "pydroid-ipcam";
version = "unstable-2021-04-16";
version = "unstable-2021-06-01";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = pname;
rev = "9f22682c6f9182aa5e42762f52223337b8b6909c";
sha256 = "1lvppyzmwg0fp8zch11j51an4sb074yl9shzanakvjmbqpnif6s6";
rev = "3ca14ff178f3506a6a91d8736deea8f06e9ad1c1";
sha256 = "0w81pl5fya17hg5xgba2vgxnylfd8jc70il575wdz2pw6z6ihj3s";
};
propagatedBuildInputs = [

View File

@@ -13,14 +13,14 @@
buildPythonPackage rec {
pname = "python-smarttub";
version = "0.0.24";
version = "0.0.25";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "mdz";
repo = pname;
rev = "v${version}";
sha256 = "sha256-XWZbfPNZ1cPsDwtJRuOwIPTHmNBMzFSYHDDcbBrXjtk=";
sha256 = "13yf75vmn15g2hrbiv78mws96qbk40p5pz7vc6ljyp41y2lc9wpm";
};
propagatedBuildInputs = [

View File

@@ -11,14 +11,14 @@
}:
buildPythonPackage rec {
pname = "pyroon";
pname = "roonapi";
version = "0.0.37";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pavoni";
repo = pname;
repo = "pyroon";
rev = version;
sha256 = "1hxr473z9h3kb91m3ygina58pfwfyjsv1yb29spxmnbzvk34rzzz";
};

View File

@@ -6,45 +6,37 @@
, fetchFromGitHub
, poetry-core
, pytest-asyncio
, pytest-cov
, pytestCheckHook
, python-engineio
, python-socketio
, pythonOlder
, pytz
, voluptuous
, websockets
}:
buildPythonPackage rec {
pname = "simplisafe-python";
version = "9.6.10";
version = "10.0.0";
format = "pyproject";
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
sha256 = "0cc5kxxishxhkg1nqmgbh36yxs8yjfynmimzjnaqkqfrs9iq46mr";
sha256 = "sha256-VF8R+dty54GuWvYs/OqWhfGtOVieuxtfndQUxHhu5lc=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
aiohttp
python-engineio
python-socketio
pytz
voluptuous
websockets
];
checkInputs = [
aresponses
asynctest
pytest-asyncio
pytest-cov
pytestCheckHook
];
@@ -52,6 +44,8 @@ buildPythonPackage rec {
pythonImportsCheck = [ "simplipy" ];
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "Python library the SimpliSafe API";
homepage = "https://simplisafe-python.readthedocs.io/";

View File

@@ -1,5 +1,6 @@
{ lib
, aiohttp
, websockets
, buildPythonPackage
, fetchFromGitHub
}:
@@ -17,6 +18,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
aiohttp
websockets
];
# Project has no tests

View File

@@ -6,11 +6,11 @@
buildPythonPackage rec {
pname = "venstarcolortouch";
version = "0.13";
version = "0.14";
src = fetchPypi {
inherit pname version;
sha256 = "04y9gmxb0vsmc5c930x9ziis5v83b29kfzsgjlww3pssj69lmw1s";
sha256 = "sha256-wrsu1SffD4/RvDiE6yABfZN/oSDH8Ao/RJK7yL2QKy8=";
};
propagatedBuildInputs = [

View File

@@ -11,14 +11,14 @@
buildPythonPackage rec {
pname = "xknx";
version = "0.18.3";
version = "0.18.4";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "XKNX";
repo = pname;
rev = version;
sha256 = "sha256-IXzmVAxxFOfU8ptixZLeyM64Fm1xSIlEDbR09f77JKM=";
sha256 = "sha256-gKt3VDPsHjd3QNqD63MY0Pe+eLR3YmKidoAE5lbqCZQ=";
};
propagatedBuildInputs = [

View File

@@ -9,7 +9,7 @@
buildPythonPackage rec {
pname = "zwave-js-server-python";
version = "0.25.0";
version = "0.26.1";
disabled = pythonOlder "3.8";
@@ -17,7 +17,7 @@ buildPythonPackage rec {
owner = "home-assistant-libs";
repo = pname;
rev = version;
sha256 = "sha256-frhmyla3neFVZILDy7HnKloMqNLRjm3gxS88xZdu29w=";
sha256 = "1rh6wim5hr9lygvgria7lr6x61sdyrv3drrrirgv9p9gl3rxcj6m";
};
propagatedBuildInputs = [