Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9fcbe8ef1725
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a3b6b49eac91
Choose a head ref
  • 6 commits
  • 7 files changed
  • 3 contributors

Commits on Mar 2, 2019

  1. python3Packages.aiounifi: init at 4

    peterhoeg authored and Robert Schütz committed Mar 2, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    0319b56 View commit details
  2. home-assistant: 0.86.4 -> 0.87.1

    Robert Schütz committed Mar 2, 2019
    Copy the full SHA
    27fb4f4 View commit details
  3. Verified

    This commit was signed with the committer’s verified signature.
    mrgrain Momo Kornher
    Copy the full SHA
    971187e View commit details
  4. Copy the full SHA
    7748262 View commit details
  5. python3Packages.pyupdate: 0.2.29 -> 1.3.5

    peterhoeg authored and Robert Schütz committed Mar 2, 2019
    Copy the full SHA
    2f589e7 View commit details

Commits on Mar 3, 2019

  1. Merge pull request #55383 from dotlambda/home-assistant-0.87

    home-assistant: 0.86.4 -> 0.87.1
    dotlambda authored Mar 3, 2019
    Copy the full SHA
    a3b6b49 View commit details
20 changes: 15 additions & 5 deletions nixos/modules/services/misc/home-assistant.nix
Original file line number Diff line number Diff line change
@@ -9,13 +9,13 @@ let
configJSON = pkgs.writeText "configuration.json"
(builtins.toJSON (if cfg.applyDefaultConfig then
(recursiveUpdate defaultConfig cfg.config) else cfg.config));
configFile = pkgs.runCommand "configuration.yaml" { } ''
configFile = pkgs.runCommand "configuration.yaml" { preferLocalBuild = true; } ''
${pkgs.remarshal}/bin/json2yaml -i ${configJSON} -o $out
'';

lovelaceConfigJSON = pkgs.writeText "ui-lovelace.json"
(builtins.toJSON cfg.lovelaceConfig);
lovelaceConfigFile = pkgs.runCommand "ui-lovelace.yaml" { } ''
lovelaceConfigFile = pkgs.runCommand "ui-lovelace.yaml" { preferLocalBuild = true; } ''
${pkgs.remarshal}/bin/json2yaml -i ${lovelaceConfigJSON} -o $out
'';

@@ -29,14 +29,24 @@ let
# platform = "luftdaten";
# ...
# } ];
#
# Beginning with 0.87 Home Assistant is migrating their components to the
# scheme "platform.subComponent", e.g. "hue.light" instead of "light.hue".
# See https://developers.home-assistant.io/blog/2019/02/19/the-great-migration.html.
# Hence, we also check whether we find an entry in the config when interpreting
# the first part of the path as the component.
useComponentPlatform = component:
let
path = splitString "." component;
# old: platform is the last part of path
parentConfig = attrByPath (init path) null cfg.config;
platform = last path;
in isList parentConfig && any
(item: item.platform or null == platform)
parentConfig;
# new: platform is the first part of the path
parentConfig' = attrByPath (tail path) null cfg.config;
platform' = head path;
in
(isList parentConfig && any (item: item.platform or null == platform) parentConfig)
|| (isList parentConfig' && any (item: item.platform or null == platform') parentConfig');

# Returns whether component is used in config
useComponent = component:
26 changes: 26 additions & 0 deletions pkgs/development/python-modules/aiounifi/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k
, aiohttp }:

buildPythonPackage rec {
pname = "aiounifi";
version = "4";

disabled = ! isPy3k;

src = fetchPypi {
inherit pname version;
sha256 = "0594nb8mpfhnnk9jadbdnbn9v7p4sh3430kcgfyhsh7ayw2mpb9m";
};

propagatedBuildInputs = [ aiohttp ];

# upstream has no tests
doCheck = false;

meta = with lib; {
description = "An asynchronous Python library for communicating with Unifi Controller API";
homepage = https://pypi.python.org/pypi/aiounifi/;
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
};
}
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/pyupdate/default.nix
Original file line number Diff line number Diff line change
@@ -3,11 +3,11 @@

buildPythonPackage rec {
pname = "pyupdate";
version = "0.2.29";
version = "1.3.5";

src = fetchPypi {
inherit pname version;
sha256 = "0096bde03f43b67c068914ebcb756265641a6d2a5888d4bc81636347c22bf0aa";
sha256 = "1qxbakhsgmdc5aakhkadr26dlhi0lma7170b245sragn170fqjxf";
};

propagatedBuildInputs = [ requests ];
Loading