git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #50166 from dotlambda/home-assistant-0.82

home-assistant: 0.81.5 -> 0.82.0

commitb9494ac352920a3c5254a7ff661470d7343eb8f8 authorRobert Schütz <rschuetz17@gmail.com> dateMon 12 Nov 2018, 11:37 (8 years ago) parent92c478bdbceff8
10 files changed+98−58
pkgs/applications/misc/ola/default.nix+4−1 pkgs/development/libraries/openzwave/default.nix+6−4 pkgs/development/python-modules/homeassistant-pyozw/default.nix+14 pkgs/development/python-modules/ruamel_yaml/default.nix+31 pkgs/servers/home-assistant/component-packages.nix+22−14 pkgs/servers/home-assistant/default.nix+11−5 pkgs/servers/home-assistant/frontend.nix+2−2 pkgs/servers/home-assistant/parse-requirements.py+2−2 pkgs/top-level/all-packages.nix+3−3 pkgs/top-level/python-packages.nix+3−27
pkgs/applications/misc/ola/default.nix+4−1
@@ -16,7 +16,10 @@ stdenv.mkDerivation rec {
1616
1717 nativeBuildInputs = [ autoreconfHook bison flex pkgconfig perl ];
1818 buildInputs = [ libuuid cppunit protobuf3_1 zlib avahi libmicrohttpd python3 ];
19− propagatedBuildInputs = [ python3Packages.protobuf3_1 python3Packages.numpy ];
19+ propagatedBuildInputs = [
20+ (python3Packages.protobuf.override { protobuf = protobuf3_1; })
21+ python3Packages.numpy
22+ ];
2023
2124 configureFlags = [ "--enable-python-libs" ];
2225
pkgs/development/libraries/openzwave/default.nix+6−4
@@ -3,16 +3,18 @@
33, systemd }:
44
55let
6− version = "2018-04-04";
6+ version = "2018-11-04";
77
88in stdenv.mkDerivation rec {
99 name = "openzwave-${version}";
1010
11+ # Use fork by Home Assistant because this package is mainly used for python.pkgs.homeassistant-pyozw.
12+ # See https://github.com/OpenZWave/open-zwave/compare/master...home-assistant:hass for the difference.
1113 src = fetchFromGitHub {
12− owner = "OpenZWave";
14+ owner = "home-assistant";
1315 repo = "open-zwave";
14− rev = "ab5fe966fee882bb9e8d78a91db892a60a1863d9";
15− sha256 = "0yby8ygzjn5zp5vhysxaadbzysqanwd2zakz379299qs454pr2h9";
16+ rev = "2cc174ad5c935d2d17828634aca2db5a60c59237";
17+ sha256 = "1d13maj93i6h792cbvqpx43ffss44dxmvbwj2777vzvvjib8m4n8";
1618 };
1719
1820 nativeBuildInputs = [ doxygen fontconfig graphviz-nox libxml2 pkgconfig which ];
pkgs/development/python-modules/homeassistant-pyozw/default.nixnew file+14
@@ -0,0 +1,14 @@
1+{ python_openzwave, fetchPypi }:
2+
3+python_openzwave.overridePythonAttrs (oldAttrs: rec {
4+ pname = "homeassistant_pyozw";
5+ version = "0.1.0";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ extension = "zip";
10+ sha256 = "bca4062906f65db9b4668388e6755d6ea3ee9e1b02ad3ed81738bb4d32a79342";
11+ };
12+
13+ meta.homepage = https://github.com/home-assistant/python-openzwave;
14+})
pkgs/development/python-modules/ruamel_yaml/default.nixnew file+31
@@ -0,0 +1,31 @@
1+{ stdenv
2+, buildPythonPackage
3+, fetchPypi
4+, ruamel_base
5+, typing
6+, ruamel_ordereddict
7+, isPy3k
8+}:
9+
10+buildPythonPackage rec {
11+ pname = "ruamel.yaml";
12+ version = "0.15.35";
13+
14+ src = fetchPypi {
15+ inherit pname version;
16+ sha256 = "0xggyfaj6vprggahf7cq8kp9j79rb7hn8ndk3bxj2sxvwhhliiwd";
17+ };
18+
19+ # Tests cannot load the module to test
20+ doCheck = false;
21+
22+ propagatedBuildInputs = [ ruamel_base typing ]
23+ ++ stdenv.lib.optional (!isPy3k) ruamel_ordereddict;
24+
25+ meta = with stdenv.lib; {
26+ description = "YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order";
27+ homepage = https://bitbucket.org/ruamel/yaml;
28+ license = licenses.mit;
29+ };
30+
31+}
pkgs/servers/home-assistant/component-packages.nix+22−14
@@ -2,7 +2,7 @@
22# Do not edit!
33
44{
5− version = "0.81.5";
5+ version = "0.82.0";
66 components = {
77 "abode" = ps: with ps; [ ];
88 "ads" = ps: with ps; [ ];
@@ -137,6 +137,7 @@
137137 "binary_sensor.rpi_gpio" = ps: with ps; [ ];
138138 "binary_sensor.rpi_pfio" = ps: with ps; [ ];
139139 "binary_sensor.satel_integra" = ps: with ps; [ ];
140+ "binary_sensor.sense" = ps: with ps; [ ];
140141 "binary_sensor.skybell" = ps: with ps; [ ];
141142 "binary_sensor.sleepiq" = ps: with ps; [ ];
142143 "binary_sensor.spc" = ps: with ps; [ ];
@@ -317,18 +318,20 @@
317318 "deconz" = ps: with ps; [ ];
318319 "deconz.config_flow" = ps: with ps; [ ];
319320 "deconz.const" = ps: with ps; [ ];
321+ "deconz.gateway" = ps: with ps; [ ];
320322 "demo" = ps: with ps; [ aiohttp-cors ];
321323 "device_sun_light_trigger" = ps: with ps; [ ];
322324 "device_tracker" = ps: with ps; [ ];
323325 "device_tracker.actiontec" = ps: with ps; [ ];
324326 "device_tracker.aruba" = ps: with ps; [ pexpect ];
325− "device_tracker.asuswrt" = ps: with ps; [ pexpect ];
327+ "device_tracker.asuswrt" = ps: with ps; [ ];
326328 "device_tracker.automatic" = ps: with ps; [ aiohttp-cors ];
327329 "device_tracker.bbox" = ps: with ps; [ ];
328330 "device_tracker.bluetooth_le_tracker" = ps: with ps; [ ];
329331 "device_tracker.bluetooth_tracker" = ps: with ps; [ ];
330332 "device_tracker.bmw_connected_drive" = ps: with ps; [ ];
331333 "device_tracker.bt_home_hub_5" = ps: with ps; [ ];
334+ "device_tracker.bt_smarthub" = ps: with ps; [ ];
332335 "device_tracker.cisco_ios" = ps: with ps; [ pexpect ];
333336 "device_tracker.ddwrt" = ps: with ps; [ ];
334337 "device_tracker.demo" = ps: with ps; [ ];
@@ -407,6 +410,7 @@
407410 "fan.mqtt" = ps: with ps; [ paho-mqtt ];
408411 "fan.template" = ps: with ps; [ ];
409412 "fan.tuya" = ps: with ps; [ ];
413+ "fan.wemo" = ps: with ps; [ ];
410414 "fan.wink" = ps: with ps; [ ];
411415 "fan.xiaomi_miio" = ps: with ps; [ construct ];
412416 "fan.zha" = ps: with ps; [ ];
@@ -417,7 +421,7 @@
417421 "foursquare" = ps: with ps; [ aiohttp-cors ];
418422 "freedns" = ps: with ps; [ ];
419423 "fritzbox" = ps: with ps; [ ];
420− "frontend" = ps: with ps; [ aiohttp-cors ruamel_yaml ];
424+ "frontend" = ps: with ps; [ aiohttp-cors ];
421425 "gc100" = ps: with ps; [ ];
422426 "geo_location" = ps: with ps; [ ];
423427 "geo_location.demo" = ps: with ps; [ ];
@@ -433,6 +437,7 @@
433437 "google_assistant.trait" = ps: with ps; [ ];
434438 "google_domains" = ps: with ps; [ ];
435439 "graphite" = ps: with ps; [ ];
440+ "greeneye_monitor" = ps: with ps; [ ];
436441 "group" = ps: with ps; [ ];
437442 "habitica" = ps: with ps; [ ];
438443 "hangouts" = ps: with ps; [ ];
@@ -492,6 +497,7 @@
492497 "image_processing.openalpr_local" = ps: with ps; [ ];
493498 "image_processing.opencv" = ps: with ps; [ numpy ];
494499 "image_processing.seven_segments" = ps: with ps; [ ];
500+ "image_processing.tensorflow" = ps: with ps; [ numpy pillow protobuf ];
495501 "influxdb" = ps: with ps; [ influxdb ];
496502 "input_boolean" = ps: with ps; [ ];
497503 "input_datetime" = ps: with ps; [ ];
@@ -611,11 +617,11 @@
611617 "lock.wink" = ps: with ps; [ ];
612618 "lock.xiaomi_aqara" = ps: with ps; [ ];
613619 "lock.zwave" = ps: with ps; [ ];
614− "logbook" = ps: with ps; [ aiohttp-cors ruamel_yaml sqlalchemy ];
620+ "logbook" = ps: with ps; [ aiohttp-cors sqlalchemy ];
615621 "logentries" = ps: with ps; [ ];
616622 "logger" = ps: with ps; [ ];
617623 "logi_circle" = ps: with ps; [ ];
618− "lovelace" = ps: with ps; [ ruamel_yaml ];
624+ "lovelace" = ps: with ps; [ ];
619625 "lutron" = ps: with ps; [ ];
620626 "lutron_caseta" = ps: with ps; [ ];
621627 "mailbox" = ps: with ps; [ aiohttp-cors ];
@@ -740,7 +746,7 @@
740746 "notify.hangouts" = ps: with ps; [ ];
741747 "notify.hipchat" = ps: with ps; [ ];
742748 "notify.homematic" = ps: with ps; [ pyhomematic ];
743− "notify.html5" = ps: with ps; [ aiohttp-cors ruamel_yaml ];
749+ "notify.html5" = ps: with ps; [ aiohttp-cors ];
744750 "notify.instapush" = ps: with ps; [ ];
745751 "notify.ios" = ps: with ps; [ aiohttp-cors zeroconf ];
746752 "notify.joaoapps_join" = ps: with ps; [ ];
@@ -789,8 +795,8 @@
789795 "openuv" = ps: with ps; [ ];
790796 "openuv.config_flow" = ps: with ps; [ ];
791797 "openuv.const" = ps: with ps; [ ];
792− "panel_custom" = ps: with ps; [ aiohttp-cors ruamel_yaml ];
793− "panel_iframe" = ps: with ps; [ aiohttp-cors ruamel_yaml ];
798+ "panel_custom" = ps: with ps; [ aiohttp-cors ];
799+ "panel_iframe" = ps: with ps; [ aiohttp-cors ];
794800 "persistent_notification" = ps: with ps; [ ];
795801 "pilight" = ps: with ps; [ ];
796802 "plant" = ps: with ps; [ ];
@@ -842,6 +848,7 @@
842848 "scene.wink" = ps: with ps; [ ];
843849 "script" = ps: with ps; [ ];
844850 "scsgate" = ps: with ps; [ ];
851+ "sense" = ps: with ps; [ ];
845852 "sensor" = ps: with ps; [ ];
846853 "sensor.abode" = ps: with ps; [ ];
847854 "sensor.ads" = ps: with ps; [ ];
@@ -929,12 +936,13 @@
929936 "sensor.gearbest" = ps: with ps; [ ];
930937 "sensor.geizhals" = ps: with ps; [ ];
931938 "sensor.geo_rss_events" = ps: with ps; [ ];
932− "sensor.gitlab_ci" = ps: with ps; [ ];
939+ "sensor.gitlab_ci" = ps: with ps; [ python-gitlab ];
933940 "sensor.gitter" = ps: with ps; [ ];
934941 "sensor.glances" = ps: with ps; [ ];
935942 "sensor.google_travel_time" = ps: with ps; [ ];
936943 "sensor.google_wifi" = ps: with ps; [ ];
937944 "sensor.gpsd" = ps: with ps; [ ];
945+ "sensor.greeneye_monitor" = ps: with ps; [ ];
938946 "sensor.gtfs" = ps: with ps; [ ];
939947 "sensor.habitica" = ps: with ps; [ ];
940948 "sensor.haveibeenpwned" = ps: with ps; [ ];
@@ -975,6 +983,7 @@
975983 "sensor.lyft" = ps: with ps; [ ];
976984 "sensor.magicseaweed" = ps: with ps; [ ];
977985 "sensor.melissa" = ps: with ps; [ ];
986+ "sensor.meteo_france" = ps: with ps; [ ];
978987 "sensor.metoffice" = ps: with ps; [ ];
979988 "sensor.mfi" = ps: with ps; [ ];
980989 "sensor.mhz19" = ps: with ps; [ ];
@@ -1017,7 +1026,7 @@
10171026 "sensor.pilight" = ps: with ps; [ ];
10181027 "sensor.plex" = ps: with ps; [ ];
10191028 "sensor.pocketcasts" = ps: with ps; [ ];
1020− "sensor.pollen" = ps: with ps; [ ];
1029+ "sensor.pollen" = ps: with ps; [ numpy ];
10211030 "sensor.postnl" = ps: with ps; [ ];
10221031 "sensor.pushbullet" = ps: with ps; [ pushbullet ];
10231032 "sensor.pvoutput" = ps: with ps; [ ];
@@ -1096,7 +1105,7 @@
10961105 "sensor.twitch" = ps: with ps; [ ];
10971106 "sensor.uber" = ps: with ps; [ ];
10981107 "sensor.uk_transport" = ps: with ps; [ ];
1099− "sensor.upnp" = ps: with ps; [ aiohttp-cors ];
1108+ "sensor.upnp" = ps: with ps; [ ];
11001109 "sensor.ups" = ps: with ps; [ ];
11011110 "sensor.uptime" = ps: with ps; [ ];
11021111 "sensor.uscis" = ps: with ps; [ ];
@@ -1124,7 +1133,6 @@
11241133 "sensor.xbox_live" = ps: with ps; [ ];
11251134 "sensor.xiaomi_aqara" = ps: with ps; [ ];
11261135 "sensor.xiaomi_miio" = ps: with ps; [ construct ];
1127− "sensor.yahoo_finance" = ps: with ps; [ ];
11281136 "sensor.yr" = ps: with ps; [ xmltodict ];
11291137 "sensor.yweather" = ps: with ps; [ yahooweather ];
11301138 "sensor.zabbix" = ps: with ps; [ ];
@@ -1298,7 +1306,7 @@
12981306 "unifi.errors" = ps: with ps; [ ];
12991307 "upcloud" = ps: with ps; [ ];
13001308 "updater" = ps: with ps; [ distro ];
1301− "upnp" = ps: with ps; [ aiohttp-cors ];
1309+ "upnp" = ps: with ps; [ ];
13021310 "upnp.config_flow" = ps: with ps; [ ];
13031311 "upnp.const" = ps: with ps; [ ];
13041312 "upnp.device" = ps: with ps; [ ];
@@ -1362,7 +1370,7 @@
13621370 "zone.const" = ps: with ps; [ ];
13631371 "zone.zone" = ps: with ps; [ ];
13641372 "zoneminder" = ps: with ps; [ ];
1365− "zwave" = ps: with ps; [ pydispatcher python_openzwave ];
1373+ "zwave" = ps: with ps; [ homeassistant-pyozw pydispatcher ];
13661374 "zwave.config_flow" = ps: with ps; [ ];
13671375 "zwave.const" = ps: with ps; [ ];
13681376 "zwave.discovery_schemas" = ps: with ps; [ ];
pkgs/servers/home-assistant/default.nix+11−5
@@ -20,8 +20,8 @@ let
2020 # Override the version of some packages pinned in Home Assistant's setup.py
2121 (mkOverride "aiohttp" "3.4.4"
2222 "51afec6ffa50a9da4cdef188971a802beb1ca8e8edb40fa429e5e529db3475fa")
23− (mkOverride "astral" "1.6.1"
24− "ab0c08f2467d35fcaeb7bad15274743d3ac1ad18b5391f64a0058a9cd192d37d")
23+ (mkOverride "astral" "1.7.1"
24+ "88086fd2006c946567285286464b2da3294a3b0cbba4410b7008ec2458f82a07")
2525 (mkOverride "async-timeout" "3.0.1"
2626 "0c3c816a028d47f659d6ff5c745cb2acf1f966da1fe5c19c77a70282b25f4c5f")
2727 (mkOverride "attrs" "18.2.0"
@@ -36,11 +36,17 @@ let
3636 "bf4d9b61dce69c49e830950aa36fad194706463b0b6dfe81425b9e0bc6644d46")
3737 (mkOverride "requests" "2.20.0"
3838 "99dcfdaaeb17caf6e526f32b6a7b780461512ab3f1d992187801694cba42770c")
39+ (mkOverride "ruamel_yaml" "0.15.72"
40+ "97652b9e3a76958cf6684d5d963674adf345d8cc192ddd95e2a21b22cda29f40")
3941 (mkOverride "voluptuous" "0.11.5"
4042 "567a56286ef82a9d7ae0628c5842f65f516abcb496e74f3f59f1d7b28df314ef")
4143 (mkOverride "voluptuous-serialize" "2.0.0"
4244 "44be04d87aec34bd7d31ab539341fadc505205f2299031ed9be985112c21aa41")
4345
46+ # used by auth.mfa_modules.totp
47+ (mkOverride "pyotp" "2.2.6"
48+ "dd9130dd91a0340d89a0f06f887dbd76dd07fb95a8886dc4bc401239f2eebd69")
49+
4450 # used by check_config script
4551 # can be unpinned once https://github.com/home-assistant/home-assistant/issues/11917 is resolved
4652 (mkOverride "colorlog" "3.1.4"
@@ -79,7 +85,7 @@ let
7985 extraBuildInputs = extraPackages py.pkgs;
8086
8187 # Don't forget to run parse-requirements.py after updating
82− hassVersion = "0.81.5";
88+ hassVersion = "0.82.0";
8389
8490in with py.pkgs; buildPythonApplication rec {
8591 pname = "homeassistant";
@@ -94,12 +100,12 @@ in with py.pkgs; buildPythonApplication rec {
94100 owner = "home-assistant";
95101 repo = "home-assistant";
96102 rev = version;
97− sha256 = "1fgf9hrv7q7g8s561sir951vd27a459mh3k685xzfnhkh4si47g4";
103+ sha256 = "1vvq6frzwmbnynpq6269ykifwmvm8zj5zraslsph3jidppx2bnd4";
98104 };
99105
100106 propagatedBuildInputs = [
101107 # From setup.py
102− aiohttp astral async-timeout attrs bcrypt certifi jinja2 pyjwt cryptography pip pytz pyyaml requests voluptuous voluptuous-serialize
108+ aiohttp astral async-timeout attrs bcrypt certifi jinja2 pyjwt cryptography pip pytz pyyaml requests ruamel_yaml voluptuous voluptuous-serialize
103109 # From http, frontend and recorder components and auth.mfa_modules.totp
104110 sqlalchemy aiohttp-cors hass-frontend pyotp pyqrcode
105111 ] ++ componentBuildInputs ++ extraBuildInputs;
pkgs/servers/home-assistant/frontend.nix+2−2
@@ -2,11 +2,11 @@
22
33buildPythonPackage rec {
44 pname = "home-assistant-frontend";
5− version = "20181026.4";
5+ version = "20181103.3";
66
77 src = fetchPypi {
88 inherit pname version;
9− sha256 = "b0610206eee06042847d89a581ecfcd71255b0e1ecff77e302237e8aa175b00d";
9+ sha256 = "b1b598f637ffc4c37a3d35aa3b912216f0340cb43fa6c50f4617536669d19499";
1010 };
1111
1212 propagatedBuildInputs = [ user-agents ];
pkgs/servers/home-assistant/parse-requirements.py+2−2
@@ -1,5 +1,5 @@
11#! /usr/bin/env nix-shell
2−#! nix-shell -i python3 -p "python3.withPackages (ps: with ps; [ aiohttp astral async-timeout attrs certifi jinja2 pyjwt cryptography pip pytz pyyaml requests voluptuous ])"
2+#! nix-shell -i python3 -p "python3.withPackages (ps: with ps; [ aiohttp astral async-timeout attrs certifi jinja2 pyjwt cryptography pip pytz pyyaml requests ruamel_yaml voluptuous ])"
33#
44# This script downloads Home Assistant's source tarball.
55# Inside the homeassistant/components directory, each component has an associated .py file,
@@ -93,7 +93,7 @@ def name_to_attr_path(req):
9393 except KeyError:
9494 pass
9595 # Let's hope there's only one derivation with a matching name
96− assert(len(attr_paths) <= 1)
96+ assert len(attr_paths) <= 1, "{} matches more than one derivation: {}".format(req, attr_paths)
9797 if len(attr_paths) == 1:
9898 return attr_paths.pop()
9999 else:
pkgs/top-level/all-packages.nix+3−3
@@ -21675,14 +21675,14 @@ with pkgs;
2167521675 inherit (darwin.apple_sdk.frameworks) Accelerate CoreGraphics CoreVideo;
2167621676 };
2167721677
21678− caffe2 = callPackage ../development/libraries/science/math/caffe2 {
21678+ caffe2 = callPackage ../development/libraries/science/math/caffe2 (rec {
2167921679 eigen3 = eigen3_3;
2168021680 inherit (python3Packages) python future six numpy pydot;
2168121681 protobuf = protobuf3_1;
21682− python-protobuf = python3Packages.protobuf3_1;
21682+ python-protobuf = python3Packages.protobuf.override { inherit protobuf; };
2168321683 # Used only for image loading.
2168421684 opencv3 = opencv3WithoutCuda;
21685− };
21685+ });
2168621686
2168721687 cntk = callPackage ../applications/science/math/cntk rec {
2168821688 cudaSupport = pkgs.config.cudaSupport or false;
pkgs/top-level/python-packages.nix+3−27
@@ -2468,6 +2468,8 @@ in {
24682468
24692469 hetzner = callPackage ../development/python-modules/hetzner { };
24702470
2471+ homeassistant-pyozw = callPackage ../development/python-modules/homeassistant-pyozw { };
2472+
24712473 htmllaundry = callPackage ../development/python-modules/htmllaundry { };
24722474
24732475 html5lib = callPackage ../development/python-modules/html5lib { };
@@ -3773,12 +3775,6 @@ in {
37733775 protobuf = pkgs.protobuf;
37743776 };
37753777
3776− protobuf3_1 = callPackage ../development/python-modules/protobuf {
3777− disabled = isPyPy;
3778− doCheck = !isPy3k;
3779− protobuf = pkgs.protobuf3_1;
3780− };
3781−
37823778 psd-tools = callPackage ../development/python-modules/psd-tools { };
37833779
37843780 psutil = callPackage ../development/python-modules/psutil { };
@@ -5995,27 +5991,7 @@ in {
59955991
59965992 typeguard = callPackage ../development/python-modules/typeguard { };
59975993
5998− ruamel_yaml = buildPythonPackage rec {
5999− name = "ruamel.yaml-${version}";
6000− version = "0.15.35";
6001−
6002− src = pkgs.fetchurl {
6003− url = "mirror://pypi/r/ruamel.yaml/${name}.tar.gz";
6004− sha256 = "0xggyfaj6vprggahf7cq8kp9j79rb7hn8ndk3bxj2sxvwhhliiwd";
6005− };
6006−
6007− # Tests cannot load the module to test
6008− doCheck = false;
6009−
6010− propagatedBuildInputs = with self; [ ruamel_base typing ] ++
6011− (optional (!isPy3k) self.ruamel_ordereddict);
6012−
6013− meta = {
6014− description = "YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order";
6015− homepage = https://bitbucket.org/ruamel/yaml;
6016− license = licenses.mit;
6017− };
6018− };
5994+ ruamel_yaml = callPackage ../development/python-modules/ruamel_yaml { };
60195995
60205996 runsnakerun = buildPythonPackage rec {
60215997 name = "runsnakerun-2.0.4";