git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #147460 from fabaff/fix-aiopvapi

python3Packages.aiopvapi: patch support for async_timeout>4

commitdf610cc66101e550266e01657f67c4a4f3b97e17 authorFabian Affolter <fabian@affolter-engineering.ch> dateFri 26 Nov 2021, 14:11 (5 years ago) parent790c4dd91d9032
1 file changed+10−1
pkgs/development/python-modules/aiopvapi/default.nix+10−1
pkgs/development/python-modules/aiopvapi/default.nix+10−1
@@ -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";