From 6ae0e1abae33a0e9ced277c8d91012dd2113e8dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 8 Aug 2024 04:41:02 -0700 Subject: [PATCH 1/2] python312Packages.aioazuredevops: fix pythonImportsCheck --- .../development/python-modules/aioazuredevops/default.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/aioazuredevops/default.nix b/pkgs/development/python-modules/aioazuredevops/default.nix index 48687293d434..1c2c67e1acb7 100644 --- a/pkgs/development/python-modules/aioazuredevops/default.nix +++ b/pkgs/development/python-modules/aioazuredevops/default.nix @@ -25,7 +25,7 @@ buildPythonPackage rec { version = "2.2.0"; pyproject = true; - disabled = pythonOlder "3.11"; + disabled = pythonOlder "3.12"; src = fetchFromGitHub { owner = "timmo001"; @@ -53,15 +53,11 @@ buildPythonPackage rec { syrupy ]; - pythonImportsCheck = [ - "aioazuredevops.client" - "aioazuredevops.core" - ]; + pythonImportsCheck = [ "aioazuredevops" ]; meta = with lib; { changelog = "https://github.com/timmo001/aioazuredevops/releases/tag/${version}"; description = "Get data from the Azure DevOps API"; - mainProgram = "aioazuredevops"; homepage = "https://github.com/timmo001/aioazuredevops"; license = licenses.mit; maintainers = with maintainers; [ dotlambda ]; From 1a95fb3696f55c276ba268a83edc0a48606cc1e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 8 Aug 2024 04:47:19 -0700 Subject: [PATCH 2/2] home-assistant: pin aioazuredevops at 2.1.1 --- pkgs/servers/home-assistant/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 574c9fb8aca0..331fe590ac00 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -30,6 +30,16 @@ let # Override the version of some packages pinned in Home Assistant's setup.py and requirements_all.txt (self: super: { + aioazuredevops = super.aioazuredevops.overridePythonAttrs (old: rec { + version = "2.1.1"; + src = fetchFromGitHub { + owner = "timmo001"; + repo = "aioazuredevops"; + rev = "refs/tags/${version}"; + hash = "sha256-rnvWjsTRBoojsuNG3uSdBlyycE4XSrhgjmb77jy7fxY="; + }; + }); + aioelectricitymaps = super.aioelectricitymaps.overridePythonAttrs (oldAttrs: rec { version = "0.4.0"; src = fetchFromGitHub {