python311Packages.pyhaversion: disable failing tests
This commit is contained in:
parent
2d29bf7074
commit
f0e6287cc3
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user