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";