python311Packages.pyhaversion: disable failing tests

This commit is contained in:
Martin Weinelt 2023-06-08 00:48:55 +02:00
parent 2d29bf7074
commit f0e6287cc3
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

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