1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00

Merge pull request #86407 from Mic92/home-assistant

This commit is contained in:
Jörg Thalheim 2020-05-08 09:27:41 +01:00 committed by GitHub
commit 8f9eb70461
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 6 deletions

View file

@ -2,7 +2,7 @@
# Do not edit!
{
version = "0.109.0";
version = "0.109.6";
components = {
"abode" = ps: with ps; [ ]; # missing inputs: abodepy
"acer_projector" = ps: with ps; [ pyserial];

View file

@ -1,4 +1,4 @@
{ lib, fetchurl, fetchFromGitHub, fetchpatch, python3, protobuf3_6
{ stdenv, lib, fetchurl, fetchFromGitHub, fetchpatch, python3, protobuf3_6
# Look up dependencies of specified components in component-packages.nix
, extraComponents ? [ ]
@ -67,7 +67,7 @@ let
extraBuildInputs = extraPackages py.pkgs;
# Don't forget to run parse-requirements.py after updating
hassVersion = "0.109.0";
hassVersion = "0.109.6";
in with py.pkgs; buildPythonApplication rec {
pname = "homeassistant";
@ -86,7 +86,7 @@ in with py.pkgs; buildPythonApplication rec {
owner = "home-assistant";
repo = "home-assistant";
rev = version;
sha256 = "1b5y464yhngivxkz3cg2b7j2ssawy7fqr3si5pdmqkgz1dbqihhn";
sha256 = "133l6n165yivnc9qmrahk423hmns0hn0dbnx4ys7yaw3x5hqwyns";
};
propagatedBuildInputs = [
@ -98,6 +98,9 @@ in with py.pkgs; buildPythonApplication rec {
sqlalchemy aiohttp-cors hass-frontend pyotp pyqrcode ciso8601
] ++ componentBuildInputs ++ extraBuildInputs;
# upstream only tests on Linux, so do we.
doCheck = stdenv.isLinux;
checkInputs = [
asynctest pytest pytest-aiohttp requests-mock hass-nabucasa netdisco pydispatcher
];
@ -118,6 +121,10 @@ in with py.pkgs; buildPythonApplication rec {
makeWrapperArgs = lib.optional skipPip "--add-flags --skip-pip";
passthru = {
inherit (py.pkgs) hass-frontend;
};
meta = with lib; {
homepage = "https://home-assistant.io/";
description = "Open-source home automation platform running on Python 3";

View file

@ -4,11 +4,11 @@ buildPythonPackage rec {
# the frontend version corresponding to a specific home-assistant version can be found here
# https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/frontend/manifest.json
pname = "home-assistant-frontend";
version = "20200427.1";
version = "20200505.0";
src = fetchPypi {
inherit pname version;
sha256 = "0ch669asyjqbh73y4a170j86hw9in2fw3xmxaxwh5r6sgx28k4v7";
sha256 = "0h19ddgnws5l49fwr4b0j99j4xkhpxkwdsmq71q36akd4s5lj0ll";
};
# no Python tests implemented