Merge pull request #129644 from NixOS/home-assistant

This commit is contained in:
Martin Weinelt
2021-07-23 01:16:55 +02:00
committed by GitHub
31 changed files with 358 additions and 124 deletions
@@ -1,22 +1,34 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k, attrs, protobuf, zeroconf }:
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, protobuf
, zeroconf
}:
buildPythonPackage rec {
pname = "aioesphomeapi";
version = "2.9.0";
version = "4.1.0";
format = "setuptools";
disabled = !isPy3k;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "11259cd1f115d31b91512a209779fa813dded747408100805bc8ecf7c1c1fa82";
sha256 = "0210l2d5g76pllr2vh990k9shfv3zrknx5d2dmgqb5y90142cp76";
};
propagatedBuildInputs = [ attrs protobuf zeroconf ];
propagatedBuildInputs = [
protobuf
zeroconf
];
# no tests implemented
doCheck = false;
pythonImportsCheck = [ "aioesphomeapi" ];
pythonImportsCheck = [
"aioesphomeapi"
];
meta = with lib; {
description = "Python Client for ESPHome native API";
@@ -11,14 +11,14 @@
buildPythonPackage rec {
pname = "aiohomekit";
version = "0.3.0";
version = "0.4.2";
format = "pyproject";
src = fetchFromGitHub {
owner = "Jc2k";
repo = pname;
rev = version;
sha256 = "sha256-chRUQyCDXW4of0XBdmKuQEzUE3Gt4A2uGlPNy+oEoco=";
sha256 = "12v9szalh3yzfqgmspk4ch8l38kzmhwzjn9jvsq632n4zhjd7qg4";
};
nativeBuildInputs = [
@@ -14,13 +14,13 @@
buildPythonPackage rec {
pname = "bellows";
version = "0.24.0";
version = "0.25.0";
src = fetchFromGitHub {
owner = "zigpy";
repo = "bellows";
rev = version;
sha256 = "00sa4x1qzv861z9d83lk4lp1g2pqiv9hpawj92w4qn1wnqxbz6rw";
sha256 = "1836wm8whbryp31zdaj3b6w40sx1wjsxgpjdb1x9rgmwff4d1hc0";
};
prePatch = ''
@@ -0,0 +1,32 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "dacite";
version = "1.6.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "konradhalas";
repo = pname;
rev = "v${version}";
sha256 = "0nv2bnj3bq2v08ac4p583cnpjq2d6bv5isycgji5i5wg1y082a3d";
};
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "dacite" ];
meta = with lib; {
description = "Python helper to create data classes from dictionaries";
homepage = "https://github.com/konradhalas/dacite";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
@@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, fetchPypi
, lxml
, requests
}:
buildPythonPackage rec {
pname = "fritzprofiles";
version = "0.6.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "1bd4sa3i1ldkg6lnsvg004csgqklvi5xk71y971qyjvsbdbwgbn3";
};
propagatedBuildInputs = [
lxml
requests
];
pythonImportsCheck = [
"fritzprofiles"
];
# no tests
doCheck = false;
meta = with lib; {
description = "Tool to switch the online time of profiles in the AVM Fritz!Box";
homepage = "https://github.com/AaronDavidSchneider/fritzprofiles";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}
@@ -11,14 +11,14 @@
buildPythonPackage rec {
pname = "gios";
version = "1.0.1";
version = "1.0.2";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bieniu";
repo = pname;
rev = version;
sha256 = "031z5j1j961pcw8s4ajj5z2xn2jxb2hyfn3x3bxbaagwl9a5qkvn";
sha256 = "sha256-7+np1lUbBFSTJNAD6OT5k89MM+kzEj90JlulXGm36k8=";
};
propagatedBuildInputs = [
@@ -17,15 +17,15 @@
buildPythonPackage rec {
pname = "hap-python";
version = "3.5.0";
disabled = pythonOlder "3.5";
version = "3.5.1";
disabled = pythonOlder "3.6";
# pypi package does not include tests
src = fetchFromGitHub {
owner = "ikalchev";
repo = "HAP-python";
rev = "v${version}";
sha256 = "1vzlfx0gpidl0rzv4z94pziwm6rj4lrilly5pykgq984y708pcqf";
sha256 = "sha256-ZHTqlb7LIDp8MFNW8MFg6jX7QwaxT40cLi3H13ONLCI=";
};
propagatedBuildInputs = [
@@ -7,13 +7,13 @@
buildPythonPackage rec {
pname = "hatasmota";
version = "0.2.14";
version = "0.2.19";
src = fetchFromGitHub {
owner = "emontnemery";
repo = pname;
rev = version;
sha256 = "sha256-sCGUlEN1ejWhc2+9JRQ7UPqueq30u8gGSPRxbs4cnLE=";
sha256 = "sha256-h1idJJd2lPV3+tAE59gzITa7jmtBhcEpRuyflf76EAk=";
};
propagatedBuildInputs = [
@@ -2,6 +2,7 @@
, aiohttp
, aioresponses
, buildPythonPackage
, dacite
, fetchFromGitHub
, pytest-asyncio
, pytest-error-for-skips
@@ -11,18 +12,19 @@
buildPythonPackage rec {
pname = "nettigo-air-monitor";
version = "0.2.6";
version = "1.0.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "bieniu";
repo = pname;
rev = version;
sha256 = "0zs14g02m1ahyrhl2ihk74fp390g4672r1jjiaawmkxrvib07dvp";
sha256 = "sha256-VTKIUo3rR/HyEW/d/Nm0fm7wbgSdLGf02i8R3om1oCE=";
};
propagatedBuildInputs = [
aiohttp
dacite
];
checkInputs = [
@@ -9,14 +9,14 @@
buildPythonPackage rec {
pname = "PlexAPI";
version = "4.5.2";
version = "4.6.1";
disabled = isPy27;
src = fetchFromGitHub {
owner = "pkkid";
repo = "python-plexapi";
rev = version;
sha256 = "sha256-9rdpisEuLUO7oO7+7SQb4fXqRG30rf4R7bSFY+QpMhM=";
sha256 = "sha256-WL5UBsvAdtfOCkVX9NI0Z2fJ2CAO+NwD8wvkvkJ2uww=";
};
propagatedBuildInputs = [
@@ -0,0 +1,61 @@
{ lib
, aiohttp
, aresponses
, async-timeout
, attrs
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, pytz
}:
buildPythonPackage rec {
pname = "py17track";
version = "3.3.0";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
sha256 = "1rnq9ybzj2l3699mjyplc29mxla8fayh52x52cnsz21ixlfd9fky";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
async-timeout
attrs
pytz
];
checkInputs = [
aresponses
pytest-asyncio
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace ">=19.3,<21.0" ">=19.3,<22.0"
'';
# Ignore the examples directory as the files are prefixed with test_
disabledTestPaths = [ "examples/" ];
pythonImportsCheck = [ "py17track" ];
meta = with lib; {
description = "Python library to track package info from 17track.com";
homepage = "https://github.com/bachya/py17track";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
@@ -10,14 +10,14 @@
buildPythonPackage rec {
pname = "pydeconz";
version = "79";
version = "80";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Kane610";
repo = "deconz";
rev = "v${version}";
sha256 = "sha256-I29UIyHjsIymZxcE084hQoyaEMTXIIQPFcB8lsxY+UI=";
sha256 = "sha256-om1Nhqu2CU+W2k2PGP1+6jLRJihacSQDayOfTzblZKo=";
};
propagatedBuildInputs = [
@@ -8,14 +8,14 @@
buildPythonPackage rec {
pname = "pyeight";
version = "0.1.7";
version = "0.1.9";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "mezz64";
repo = "pyEight";
rev = version;
sha256 = "sha256-kTxd6nRsPvCjrXApjKcoghOISIMho5x9/kK7OvHjKQM=";
sha256 = "1ybhs09wyzzaryghd6ijxhajp3677x63c4qzqsgln1mmxhj8wm5k";
};
propagatedBuildInputs = [
@@ -9,11 +9,11 @@
buildPythonPackage rec {
pname = "pysma";
version = "0.6.0";
version = "0.6.2";
src = fetchPypi {
inherit pname version;
sha256 = "8e997cf28c3ae7ccc90caa84aa3a3ed9245fac3e9cf76efb1467e4f4800143dc";
sha256 = "sha256-nKnOWVPRFmylwUeb0yApMHdW8vGvPCLlOGkZGNYC128=";
};
propagatedBuildInputs = [
@@ -1,25 +1,40 @@
{ lib, fetchPypi, buildPythonPackage, python, text-unidecode }:
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, python
, pythonOlder
, text-unidecode
, unidecode
}:
buildPythonPackage rec {
pname = "python-slugify";
version = "4.0.1";
pname = "python-slugify";
version = "5.0.2";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "69a517766e00c1268e5bbfc0d010a0a8508de0b18d30ad5a1ff357f8ae724270";
};
src = fetchPypi {
inherit pname version;
sha256 = "sha256-8TODoLn8vmSaGJK5yOtPjqsdbYS4S7emJDF6+pgVnKs=";
};
propagatedBuildInputs = [ text-unidecode ];
propagatedBuildInputs = [
text-unidecode
unidecode
];
checkPhase = ''
${python.interpreter} test.py
'';
checkInputs = [
pytestCheckHook
];
meta = with lib; {
homepage = "https://github.com/un33k/python-slugify";
description = "A Python Slugify application that handles Unicode";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ vrthra ];
};
pytestFlagsArray = [ "test.py" ];
pythonImportsCheck = [ "slugify" ];
meta = with lib; {
description = "Python Slugify application that handles Unicode";
homepage = "https://github.com/un33k/python-slugify";
license = licenses.mit;
maintainers = with maintainers; [ vrthra ];
};
}
@@ -14,7 +14,7 @@
buildPythonPackage rec {
pname = "simplisafe-python";
version = "10.0.0";
version = "11.0.1";
format = "pyproject";
disabled = pythonOlder "3.7";
@@ -22,7 +22,7 @@ buildPythonPackage rec {
owner = "bachya";
repo = pname;
rev = version;
sha256 = "sha256-VF8R+dty54GuWvYs/OqWhfGtOVieuxtfndQUxHhu5lc=";
sha256 = "04fn65iwzgvxi44kgvgvxjr3nzi2f4hwlqrjxfvc5yda96qp347c";
};
nativeBuildInputs = [ poetry-core ];
@@ -5,26 +5,29 @@
}:
buildPythonPackage rec {
version = "0.1.2";
version = "1.0.1";
pname = "vultr";
src = fetchFromGitHub {
owner = "spry-group";
repo = "python-vultr";
rev = version;
sha256 = "1qjvvr2v9gfnwskdl0ayazpcmiyw9zlgnijnhgq9mcri5gq9jw5h";
owner = "spry-group";
repo = "python-vultr";
rev = "v${version}";
sha256 = "00lc5hdhchvm0472p03019bp9541d8y2773xkjy8vblq9qhys8q7";
};
propagatedBuildInputs = [ requests ];
propagatedBuildInputs = [
requests
];
# Tests disabled. They fail because they try to access the network
doCheck = false;
pythonImportsCheck = [ "vultr" ];
meta = with lib; {
description = "Vultr.com API Client";
homepage = "https://github.com/spry-group/python-vultr";
license = licenses.mit;
maintainers = with maintainers; [ lihop ];
};
}
@@ -14,7 +14,7 @@
buildPythonPackage rec {
pname = "wled";
version = "0.6.0";
version = "0.7.1";
disabled = pythonOlder "3.8";
format = "pyproject";
@@ -22,7 +22,7 @@ buildPythonPackage rec {
owner = "frenck";
repo = "python-wled";
rev = "v${version}";
sha256 = "sha256-aFBcSGPCT49TbqzjUv/d8agdPOCC090rNxDnE9y91Pk=";
sha256 = "02xrml9mpq3akwyryg1m7xjmgnlgi5kjvx7vkq6110ai0f9hzpwi";
};
nativeBuildInputs = [
@@ -1,32 +1,41 @@
{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, ifaddr
, pytest-asyncio
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "zeroconf";
version = "0.31.0";
version = "0.32.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-U6GAJIRxxvgb0f/8vOA+2T19jq8QkFyRIaweqZbRmEQ=";
# no tests in pypi sdist
src = fetchFromGitHub {
owner = "jstasiak";
repo = "python-zeroconf";
rev = version;
sha256 = "02fvh5ii73rf6pg9x93pc0sl1isx2ivg3d80l6s8h35w2f4g4azf";
};
propagatedBuildInputs = [ ifaddr ];
propagatedBuildInputs = [
ifaddr
];
checkInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "zeroconf/test.py" ];
checkInputs = [
pytest-asyncio
pytestCheckHook
];
disabledTests = [
# disable tests that expect some sort of networking in the build container
# tests that require network interaction
"test_close_multiple_times"
"test_launch_and_close"
"test_launch_and_close_context_manager"
"test_launch_and_close_v4_v6"
"test_launch_and_close_v6_only"
"test_integration_with_listener_ipv6"
@@ -36,7 +45,10 @@ buildPythonPackage rec {
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "zeroconf" ];
pythonImportsCheck = [
"zeroconf"
"zeroconf.asyncio"
];
meta = with lib; {
description = "Python implementation of multicast DNS service discovery";
@@ -9,13 +9,13 @@
buildPythonPackage rec {
pname = "zha-quirks";
version = "0.0.58";
version = "0.0.59";
src = fetchFromGitHub {
owner = "zigpy";
repo = "zha-device-handlers";
rev = version;
sha256 = "sha256-QU5ssbnT3/gioQ3vM9zvlbwxqSWyKIylsV9NuFkNe+Q=";
sha256 = "1x6s44apl393as847ghbqr26h0y0h4w3wp53bs0m2nfbzjwin3i7";
};
propagatedBuildInputs = [
@@ -4,6 +4,7 @@
, buildPythonPackage
, coloredlogs
, fetchFromGitHub
, fetchpatch
, jsonschema
, pyserial
, pyserial-asyncio
@@ -27,6 +28,14 @@ buildPythonPackage rec {
sha256 = "152d803jfrvkj4namni41fnbbnq85wd7zsqjhmkwrrmn2gvqjiln";
};
patches = [
(fetchpatch {
# Fixes tests/application/test_joining.py::test_new_device_join_and_bind_complex[FormedLaunchpadCC26X2R1]
url = "https://github.com/zigpy/zigpy-znp/commit/582cffb68fdf0c5bc14d55efca2a683222d7fed7.patch";
sha256 = "0qsfziqqjnnf21gdqv3wwk50vni46i0h1liw5ysq641yjfnas9az";
})
];
propagatedBuildInputs = [
async-timeout
coloredlogs
@@ -15,13 +15,13 @@
buildPythonPackage rec {
pname = "zigpy";
version = "0.33.0";
version = "0.35.1";
src = fetchFromGitHub {
owner = "zigpy";
repo = "zigpy";
rev = version;
sha256 = "sha256-oEf4GnvbQ6LY4NaNFWRmnNz1TK2tMpIVUxskhU38g4w=";
sha256 = "0y5sv8zzlkjwimknpld3fakl22cfkqv0cnw0immb7k4zb9xmls2v";
};
propagatedBuildInputs = [
@@ -40,6 +40,21 @@ buildPythonPackage rec {
pytestCheckHook
];
disabledTests = [
# RuntimeError: coroutine 'test_remigrate_forcibly_downgraded_v4' was never awaited
"test_remigrate_forcibly_downgraded_v4"
# RuntimeError: Event loop is closed
"test_startup"
];
pythonImportsCheck = [
"zigpy.application"
"zigpy.config"
"zigpy.exceptions"
"zigpy.types"
"zigpy.zcl"
];
meta = with lib; {
description = "Library implementing a ZigBee stack";
homepage = "https://github.com/zigpy/zigpy";