Merge pull request #182996 from mweinelt/home-assistant

This commit is contained in:
Martin Weinelt 2022-08-03 17:14:31 +02:00 committed by GitHub
commit e1cbea7572
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 149 additions and 6 deletions

View file

@ -45,7 +45,7 @@ buildPythonPackage rec {
# Upstream is releasing with the help of a CI to PyPI, GitHub releases
# are not in their focus
substituteInPlace pyproject.toml \
--replace 'version="main",' 'version="${version}",'
--replace 'version = "0"' 'version = "${version}"'
'';
pythonImportsCheck = [

View file

@ -20,7 +20,7 @@
buildPythonPackage rec {
pname = "simplisafe-python";
version = "2022.07.0";
version = "2022.07.1";
format = "pyproject";
disabled = pythonOlder "3.8";
@ -29,7 +29,7 @@ buildPythonPackage rec {
owner = "bachya";
repo = pname;
rev = "refs/tags/${version}";
sha256 = "sha256-v3N2f5B6BrwTb4ik2bME8OLzwsHZ3qWx+Jx1pv7KX8A=";
sha256 = "sha256-mbdL1fX86OPMw6I7Lk7NDhm2kE6/iamYbyvYvJrkwLQ=";
};
nativeBuildInputs = [

View file

@ -2,7 +2,7 @@
# Do not edit!
{
version = "2022.7.5";
version = "2022.7.7";
components = {
"abode" = ps: with ps; [
abodepy

View file

@ -30,6 +30,29 @@ let
defaultOverrides = [
# Override the version of some packages pinned in Home Assistant's setup.py and requirements_all.txt
(self: super: {
advantage-air = super.advantage-air.overridePythonAttrs (oldAttrs: rec {
version = "0.3.1";
src = super.fetchPypi {
pname = "advantage_air";
inherit version;
hash = "sha256-C+cB6oHmbr9mHZKnbls42yenQy3+L8huLk9wKazIWfU=";
};
});
})
(self: super: {
aiohomekit = super.aiohomekit.overridePythonAttrs (oldAttrs: rec {
version = "0.7.20";
src = fetchFromGitHub {
owner = "Jc2k";
repo = "aiohomekit";
rev = "refs/tags/${version}";
hash = "sha256-g7N+CIBJCMnW4FjN502SahhSpPS1p7AXZvduteHu+Z4=";
};
});
})
(self: super: {
backoff = super.backoff.overridePythonAttrs (oldAttrs: rec {
version = "1.11.1";
@ -56,6 +79,30 @@ let
});
})
(self: super: {
gridnet = super.gridnet.overridePythonAttrs (oldAttrs: rec {
version = "4.0.0";
src = fetchFromGitHub {
owner = "klaasnicolaas";
repo = "python-gridnet";
rev = "refs/tags/v${version}";
hash = "sha256-Ihs8qUx50tAUcRBsVArRhzoLcQUi1vbYh8sPyK75AEk=";
};
});
})
(self: super: {
p1monitor = super.p1monitor.overridePythonAttrs (oldAttrs: rec {
version = "1.0.1";
src = fetchFromGitHub {
owner = "klaasnicolaas";
repo = "python-p1monitor";
rev = "refs/tags/v${version}";
hash = "sha256-g3isA2gF2AD+VVzTqpnD+YiJQ9Kcl0VKvwd5l5Yx/Uo=";
};
});
})
# pytest-aiohttp>0.3.0 breaks home-assistant tests
(self: super: {
pytest-aiohttp = super.pytest-aiohttp.overridePythonAttrs (oldAttrs: rec {
@ -113,6 +160,56 @@ let
});
})
(self: super: {
pyatmo = super.pyatmo.overridePythonAttrs (oldAttrs: rec {
version = "6.2.4";
src = fetchFromGitHub {
owner = "jabesq";
repo = "pyatmo";
rev = "refs/tags/v${version}";
hash = "sha256-VXkQByaNA02fwBO2yuf7w1ZF/oJwd/h21de1EQlCu2U=";
};
checkInputs = [ super.freezegun ];
});
})
(self: super: {
python-homewizard-energy = super.python-homewizard-energy.overridePythonAttrs (oldAttrs: rec {
version = "1.0.3";
src = fetchFromGitHub {
owner = "DCSBL";
repo = "python-homewizard-energy";
rev = "refs/tags/v${version}";
hash = "sha256-ioISqRFZZCojTJ/KYS8QUtoEpBNOPqY9lC9NFbZyh5A=";
};
});
})
# pyunifiprotect excludes pydantic==1.9.1
(self: super: {
pydantic = super.pydantic.overridePythonAttrs (oldAttrs: rec {
version = "1.9.0";
src = fetchFromGitHub {
owner = "samuelcolvin";
repo = "pydantic";
rev = "refs/tags/v${version}";
hash = "sha256-C4WP8tiMRFmkDkQRrvP3yOSM2zN8pHJmX9cdANIckpM=";
};
});
})
(self: super: {
pydeconz = super.pydeconz.overridePythonAttrs (oldAttrs: rec {
version = "98";
src = fetchFromGitHub {
owner = "Kane610";
repo = "deconz";
rev = "refs/tags/v${version}";
hash = "sha256-hCJRoyDWDxrBrxs2g6mVh7MOe6UMd+S8+ftfWyzWgH8=";
};
});
})
(self: super: {
python-slugify = super.python-slugify.overridePythonAttrs (oldAttrs: rec {
pname = "python-slugify";
@ -124,6 +221,40 @@ let
});
})
(self: super: {
pytradfri = super.pytradfri.overridePythonAttrs (oldAttrs: rec {
version = "9.0.0";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = "pytradfri";
rev = "refs/tags/${version}";
hash = "sha256-12ol+2CnoPfkxmDGJJAkoafHGpQuWC4lh0N7lSvx2DE=";
};
});
})
(self: super: {
solax = super.solax.overridePythonAttrs (oldAttrs: rec {
version = "0.2.9";
src = super.fetchPypi {
pname = "solax";
inherit version;
hash = "sha256-5m2wxdTshAsEfldPAyXqAYYtH1VjqERRBUGzX6pV85I=";
};
});
})
(self: super: {
pysoma = super.pysoma.overridePythonAttrs (oldAttrs: rec {
version = "0.0.10";
src = super.fetchPypi {
pname = "pysoma";
inherit version;
hash = "sha256-sU1qHbAjdIUu0etjate8+U1zvunbw3ddBtDVUU10CuE=";
};
});
})
# Pinned due to API changes in 0.4.0
(self: super: {
vilfo-api-client = super.vilfo-api-client.overridePythonAttrs (oldAttrs: rec {
@ -150,6 +281,18 @@ let
});
})
(self: super: {
wled = super.wled.overridePythonAttrs (oldAttrs: rec {
version = "0.13.2";
src = fetchFromGitHub {
owner = "frenck";
repo = "python-wled";
rev = "refs/tags/v${version}";
hash = "sha256-Rv0jaKkN6jQ7oiv1cBYx4HAr7IqPm57jZFykXayp0T0=";
};
});
})
# home-assistant-frontend does not exist in python3.pkgs
(self: super: {
home-assistant-frontend = self.callPackage ./frontend.nix { };
@ -189,7 +332,7 @@ let
extraPackagesFile = writeText "home-assistant-packages" (lib.concatMapStringsSep "\n" (pkg: pkg.pname) extraBuildInputs);
# Don't forget to run parse-requirements.py after updating
hassVersion = "2022.7.5";
hassVersion = "2022.7.7";
in python.pkgs.buildPythonApplication rec {
pname = "homeassistant";
@ -207,7 +350,7 @@ in python.pkgs.buildPythonApplication rec {
owner = "home-assistant";
repo = "core";
rev = version;
hash = "sha256-fUKT9ZSu8dhwapvdjq50t5kh6ZwGsMteuvCjYpPQNx0=";
hash = "sha256-OU6tPTBC53ogkynH6NrYiQCerPo8Fu0ZLHhNsY0emGs=";
};
# leave this in, so users don't have to constantly update their downstream patch handling