Skip to content

Commit

Permalink
home-assistant: fetch aiohttp from GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda committed Nov 22, 2023
1 parent 2ff6c90 commit 2a503a2
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions pkgs/servers/home-assistant/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, lib
, callPackage
, fetchFromGitHub
, fetchpatch
, fetchPypi
, python311
, substituteAll
Expand Down Expand Up @@ -43,11 +44,23 @@ let
# https://github.com/home-assistant/core/pull/101913
aiohttp = super.aiohttp.overridePythonAttrs (old: rec {
version = "3.8.5";
src = fetchPypi {
inherit (old) pname;
inherit version;
hash = "sha256-uVUuxSzBR9vxlErHrJivdgLlHqLc0HbtGUyjwNHH0Lw=";
src = fetchFromGitHub {
owner = "aio-libs";
repo = "aiohttp";
rev = "refs/tags/v${version}";
hash = "sha256-rsI26JtlGFjSc2jZqfUiIwtT8AwSd+5tICK+VTxuSGg=";
};
patches = old.patches ++ [
(fetchpatch {
# https://github.com/aio-libs/aiohttp/pull/7260
# Merged upstream, should be dropped once updated to 3.9.0
url = "https://github.com/aio-libs/aiohttp/commit/7dcc235cafe0c4521bbbf92f76aecc82fee33e8b.patch";
hash = "sha256-ZzhlE50bmA+e2XX2RH1FuWQHZIAa6Dk/hZjxPoX5t4g=";
})
];
nativeCheckInputs = old.nativeCheckInputs ++ (with self; [
freezegun
]);
});

aiowatttime = super.aiowatttime.overridePythonAttrs (oldAttrs: rec {
Expand Down

0 comments on commit 2a503a2

Please sign in to comment.