Merge pull request #115016 from mweinelt/home-assistant

This commit is contained in:
Martin Weinelt
2021-03-06 19:26:20 +01:00
committed by GitHub
13 changed files with 249 additions and 82 deletions

View File

@@ -1,22 +1,43 @@
{ aiohttp, buildPythonPackage, fetchFromGitHub, lib, pytest, pytestCheckHook
, pytestcov, pytestrunner, pytest-asyncio, python, pythonOlder }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestrunner
, aiohttp
, aioresponses
, pytestCheckHook
, pytestcov
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "accuweather";
version = "0.0.11";
version = "0.1.0";
disabled = pythonOlder "3.8";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "bieniu";
repo = pname;
rev = version;
sha256 = "1sgbw9yldf81phwx6pbvqg9sp767whxymyj0ca9pwx1r6ipr080h";
sha256 = "0jp2x7fgg1shgr1fx296rni00lmjjmjgg141giljzizgd04dwgy3";
};
postPatch = ''
# we don't have pytest-error-for-skips packaged
substituteInPlace pytest.ini --replace "--error-for-skips" ""
'';
nativeBuildInputs = [ pytestrunner ];
propagatedBuildInputs = [ aiohttp ];
checkInputs = [ pytestCheckHook pytestcov pytest-asyncio ];
checkInputs = [
aioresponses
pytestCheckHook
pytestcov
pytest-asyncio
];
meta = with lib; {
description =

View File

@@ -1,24 +1,26 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
, alarmdecoder
}:
buildPythonPackage rec {
pname = "adext";
version = "0.3";
version = "0.4.1";
src = fetchPypi {
inherit pname version;
sha256 = "184qxw6i5ixnhgkjnby4zwn4jg90mxb8xy9vbg80x5w331p4z50f";
sha256 = "1yz1rpfvhbf7kfjck5vadbj9rd3bkx5248whaa3impdrjh7vs03x";
};
postPatch = ''
substituteInPlace setup.py \
--replace "alarmdecoder==1.13.2" "alarmdecoder>=1.13.2"
'';
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [ alarmdecoder ];
propagatedBuildInputs = [
alarmdecoder
];
# Tests are not published yet
doCheck = false;

View File

@@ -3,14 +3,14 @@
buildPythonPackage rec {
pname = "alarmdecoder";
version = "1.13.9";
version = "1.13.10";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "nutechsoftware";
repo = "alarmdecoder";
rev = version;
sha256 = "0plr2h1qn4ryawbaxf29cfna4wailghhaqy1jcm9kxq6q7b9xqqy";
sha256 = "05581j78181p6mwbfpbkp5irnrzsvps1lslgqrh7xbdcmz5b2nxd";
};
propagatedBuildInputs = [ pyserial pyftdi pyusb pyopenssl ];

View File

@@ -1,21 +1,40 @@
{ lib, buildPythonPackage, fetchFromGitHub
, click, click-log, pure-pcapy3
, pyserial-asyncio, voluptuous, zigpy
, asynctest, pytestCheckHook, pytest-asyncio }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, click
, click-log
, pure-pcapy3
, pyserial-asyncio
, voluptuous
, zigpy
, asynctest
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "bellows";
version = "0.21.0";
version = "0.22.0";
src = fetchFromGitHub {
owner = "zigpy";
repo = "bellows";
rev = version;
sha256 = "1gja7cb1cyzbi19k8awa2gyc3bjam0adapalpk5slxny0vxlc73a";
sha256 = "0il2cwnrcvgxx9jkj1xr2caqyza3kqjys3fpmcx7avy04xbf5dbv";
};
prePatch = ''
substituteInPlace setup.py \
--replace "click-log==0.2.1" "click-log>=0.2.1"
'';
propagatedBuildInputs = [
click click-log pure-pcapy3 pyserial-asyncio voluptuous zigpy
click
click-log
pure-pcapy3
pyserial-asyncio
voluptuous
zigpy
];
checkInputs = [
@@ -24,11 +43,6 @@ buildPythonPackage rec {
pytest-asyncio
];
prePatch = ''
substituteInPlace setup.py \
--replace "click-log==0.2.0" "click-log>=0.2.0"
'';
meta = with lib; {
description = "A Python 3 project to implement EZSP for EmberZNet devices";
homepage = "https://github.com/zigpy/bellows";

View File

@@ -9,14 +9,14 @@
buildPythonPackage rec {
pname = "PlexAPI";
version = "4.3.1";
version = "4.4.0";
disabled = isPy27;
src = fetchFromGitHub {
owner = "pkkid";
repo = "python-plexapi";
rev = version;
sha256 = "sha256-gRXNOGd9YGcGysKbAtiNwi5NxPvv39F6PEXBjiYbVq4=";
sha256 = "0wzdzi5afncinavz5g77ximdr9y2ndzwb0gl819n0l6pnvbxdwp2";
};
propagatedBuildInputs = [

View File

@@ -1,7 +1,6 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, poetry-core
, pytest-cov
, pytest-asyncio
@@ -13,24 +12,16 @@
buildPythonPackage rec {
pname = "pyvera";
version = "0.3.11";
version = "0.3.13";
format = "pyproject";
src = fetchFromGitHub {
owner = "pavoni";
repo = pname;
rev = version;
sha256 = "0yi2cjd3jag95xa0k24f7d7agi26ywb3219a0j0k8l2nsx2sdi87";
sha256 = "0vh82bwgbq93jrwi9q4da534paknpak8hxi4wwlxh3qcvnpy1njv";
};
patches = [
(fetchpatch {
# build-system section is missing https://github.com/pavoni/pyvera/pull/142
url = "https://github.com/pavoni/pyvera/pull/142/commits/e90995a8d55107118d324e8cf189ddf1d9e3aa6c.patch";
sha256 = "1psq3fiwg20kcwyybzh5g17dzn5fh29lhm238npyg846innbzgs7";
})
];
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ requests ];

View File

@@ -9,13 +9,13 @@
buildPythonPackage rec {
pname = "zha-quirks";
version = "0.0.53";
version = "0.0.54";
src = fetchFromGitHub {
owner = "zigpy";
repo = "zha-device-handlers";
rev = version;
sha256 = "16n99r7bjd3lnxn72lfnxg44n7mkv196vdhkw2sf1nq1an4ks1nc";
sha256 = "1xc4rky9x2n15rsb18vyg4lb2897k14gkz03khgf8gp37bg2dk5h";
};
propagatedBuildInputs = [ aiohttp zigpy ];

View File

@@ -17,13 +17,13 @@
buildPythonPackage rec {
pname = "zigpy-znp";
version = "0.3.0";
version = "0.4.0";
src = fetchFromGitHub {
owner = "zha-ng";
repo = "zigpy-znp";
rev = "v${version}";
sha256 = "18dav2n5fqdigf8dl7gcqa9z8l6p2ig6l5q78gqg2wj7wjpncwyj";
sha256 = "1g5jssdnibhb4i4k1js9iy9w40cipf1gdnyp847x0bv6wblzx8rl";
};
propagatedBuildInputs = [
@@ -45,11 +45,6 @@ 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 lib; {
description = "A library for zigpy which communicates with TI ZNP radios";
homepage = "https://github.com/zha-ng/zigpy-znp";