From f0e6287cc30a98a8352cd2a5dc2727361731a8ce Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 8 Jun 2023 00:48:55 +0200 Subject: [PATCH] python311Packages.pyhaversion: disable failing tests --- .../python-modules/pyhaversion/default.nix | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/pyhaversion/default.nix b/pkgs/development/python-modules/pyhaversion/default.nix index edc05d1aca05..204b8526d879 100644 --- a/pkgs/development/python-modules/pyhaversion/default.nix +++ b/pkgs/development/python-modules/pyhaversion/default.nix @@ -23,6 +23,12 @@ buildPythonPackage rec { hash = "sha256-HMJqZn0yzN2dP5WTRCbem1Xw8nyH2Hy7oVP4kEKHHAo="; }; + postPatch = '' + # Upstream doesn't set a version for the tagged releases + substituteInPlace setup.py \ + --replace "main" ${version} + ''; + propagatedBuildInputs = [ aiohttp awesomeversion @@ -34,17 +40,16 @@ buildPythonPackage rec { pytestCheckHook ]; - postPatch = '' - # Upstream doesn't set a version for the tagged releases - substituteInPlace setup.py \ - --replace "main" ${version} - ''; - - pythonImportsCheck = [ "pyhaversion" ]; + disabledTests = [ + # Error fetching version information from HaVersionSource.SUPERVISOR Server disconnected + "test_stable_version" + "test_etag" + ]; + meta = with lib; { description = "Python module to the newest version number of Home Assistant"; homepage = "https://github.com/ludeeus/pyhaversion";