@@ -28,7 +28,16 @@ buildPythonPackage rec {
2828 pytestCheckHook
2929 ];
3030
31− pythonImportsCheck = [ "aiopvapi" ];
31+ postPatch = ''
32+ # async_timeout 4.0.0 removes loop, https://github.com/sander76/aio-powerview-api/pull/13
33+ # Patch doesn't apply due to different line endings
34+ substituteInPlace aiopvapi/helpers/aiorequest.py \
35+ --replace ", loop=self.loop)" ")"
36+ '';
37+
38+ pythonImportsCheck = [
39+ "aiopvapi"
40+ ];
3241
3342 meta = with lib; {
3443 description = "Python API for the PowerView API";