python313Packages.aiohwenergy: patch async_timeout

This commit is contained in:
Fabian Affolter
2025-11-15 11:45:46 +01:00
parent e20bc660ea
commit f4cf313507
@@ -18,6 +18,12 @@ buildPythonPackage rec {
hash = "sha256-WfkwIxyDzLNzhWNWST/V3iN9Bhu2oXDwGiA5UXCq5ho=";
};
postPatch = ''
# Replace async_timeout with asyncio.timeout
substituteInPlace aiohwenergy/hwenergy.py \
--replace-fail "async_timeout" "asyncio"
'';
build-system = [ setuptools ];
dependencies = [ aiohttp ];