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: 20c1ccf2dc25
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8071b8ba821c
Choose a head ref
  • 4 commits
  • 4 files changed
  • 1 contributor

Commits on Nov 5, 2020

  1. python3Packages.pyairvisual: 1.0.0 -> 5.0.4

    mweinelt authored and Jonathan Ringer committed Nov 5, 2020
    Copy the full SHA
    842c7c5 View commit details
  2. python3Packages.pyatmo: 4.1.0 -> 4.2.0

    Relax their oauthlib pin to 3.1.0, we have already move on to an unstable
    version for the latest PyJWT support.
    mweinelt authored and Jonathan Ringer committed Nov 5, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    7f623f6 View commit details
  3. homeassistant: 0.117.2 -> 0.117.3

    mweinelt authored and Jonathan Ringer committed Nov 5, 2020
    Copy the full SHA
    0c4e33e View commit details
  4. homeassistant: 0.117.3 -> 0.117.4

    mweinelt authored and Jonathan Ringer committed Nov 5, 2020
    Copy the full SHA
    8071b8b View commit details
49 changes: 37 additions & 12 deletions pkgs/development/python-modules/pyairvisual/default.nix
Original file line number Diff line number Diff line change
@@ -1,29 +1,54 @@
{ lib, buildPythonPackage, isPy3k, fetchFromGitHub, requests
, requests-mock, pytest
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, poetry
, aiohttp
, numpy
, pysmb
, aresponses
, asynctest
, pytest-aiohttp
, pytest-asyncio
, pytestCheckHook
}:

buildPythonPackage rec {
pname = "pyairvisual";
version = "1.0.0";
version = "5.0.4";
format = "pyproject";

disabled = pythonOlder "3.6";

src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = "v${version}";
sha256 = "0ng6k07n91k5l68zk3hl4fywb33admp84wqdm20qmmw9yc9c64fd";
rev = version;
sha256 = "0z769xrb6w6bhqcq02sjryl1qyvk9dc1xfn06fc3mdqnrbr0xxj3";
};

checkInputs = [ pytest requests-mock ];
propagatedBuildInputs = [ requests ];
nativeBuildInputs = [ poetry ];

propagatedBuildInputs = [
aiohttp
numpy
pysmb
];

checkPhase = ''
py.test tests
'';
checkInputs = [
aresponses
asynctest
pytest-aiohttp
pytest-asyncio
pytestCheckHook
];

disabled = !isPy3k;
pytestFlagsArray = [
"tests"
];

meta = with lib; {
description = "A thin Python wrapper for the AirVisual API";
description = "A simple, clean, well-tested Python library for interacting with AirVisual©";
license = licenses.mit;
homepage = "https://github.com/bachya/pyairvisual";
};
17 changes: 13 additions & 4 deletions pkgs/development/python-modules/pyatmo/default.nix
Original file line number Diff line number Diff line change
@@ -12,17 +12,26 @@

buildPythonPackage rec {
pname = "pyatmo";
version = "4.1.0";
disabled = pythonOlder "3.5"; # uses type hints
version = "4.2.0";
disabled = pythonOlder "3.7";

src = fetchFromGitHub {
owner = "jabesq";
repo = "netatmo-api-python";
rev = "v${version}";
sha256 = "0x3xq6ni9rl5k3vi0ydqafdzvza785ycnlgyikgqbkppbh3j33ig";
sha256 = "0b2k1814zg3994k60xdw5gpsl8k1wy9zndd0b1p4dfb5qkx9f8kp";
};

propagatedBuildInputs = [ oauthlib requests requests_oauthlib ];
postPatch = ''
substituteInPlace setup.cfg \
--replace "oauthlib==3.1.0" "oauthlib"
'';

propagatedBuildInputs = [
oauthlib
requests
requests_oauthlib
];

checkInputs = [
freezegun
2 changes: 1 addition & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
# Do not edit!

{
version = "0.117.2";
version = "0.117.4";
components = {
"abode" = ps: with ps; [ abodepy ];
"accuweather" = ps: with ps; [ accuweather ];
9 changes: 6 additions & 3 deletions pkgs/servers/home-assistant/default.nix
Original file line number Diff line number Diff line change
@@ -67,7 +67,7 @@ let
extraBuildInputs = extraPackages py.pkgs;

# Don't forget to run parse-requirements.py after updating
hassVersion = "0.117.2";
hassVersion = "0.117.4";

in with py.pkgs; buildPythonApplication rec {
pname = "homeassistant";
@@ -83,13 +83,16 @@ in with py.pkgs; buildPythonApplication rec {
owner = "home-assistant";
repo = "core";
rev = version;
sha256 = "1mpvskr0zjvl065ldw05kc0x5yvibwfm2nmv478wznw3vwmbqrzn";
sha256 = "0f5a5y6d9wxdfd5l526dz34xz2n1a6ia7vdcr7sqf2qp51brpw52";
};

# leave this in, so users don't have to constantly update their downstream patch handling
patches = [];

postPatch = ''
substituteInPlace setup.py \
--replace "bcrypt==3.1.7" "bcrypt>=3.1.7" \
--replace "cryptography==3.2.0" "cryptography" \
--replace "cryptography==3.2" "cryptography" \
--replace "ruamel.yaml==0.15.100" "ruamel.yaml>=0.15.100"
substituteInPlace tests/test_config.py --replace '"/usr"' '"/build/media"'
'';