Merge pull request #147460 from fabaff/fix-aiopvapi

python3Packages.aiopvapi: patch support for async_timeout>4
This commit is contained in:
Fabian Affolter 2021-11-26 14:11:40 +01:00 committed by GitHub
commit df610cc661
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,16 @@ buildPythonPackage rec {
pytestCheckHook
];
pythonImportsCheck = [ "aiopvapi" ];
postPatch = ''
# async_timeout 4.0.0 removes loop, https://github.com/sander76/aio-powerview-api/pull/13
# Patch doesn't apply due to different line endings
substituteInPlace aiopvapi/helpers/aiorequest.py \
--replace ", loop=self.loop)" ")"
'';
pythonImportsCheck = [
"aiopvapi"
];
meta = with lib; {
description = "Python API for the PowerView API";