diff --git a/pkgs/development/python-modules/pyfronius/default.nix b/pkgs/development/python-modules/pyfronius/default.nix index b78aeb19545e..8a27fb0bae9c 100644 --- a/pkgs/development/python-modules/pyfronius/default.nix +++ b/pkgs/development/python-modules/pyfronius/default.nix @@ -2,6 +2,7 @@ , aiohttp , buildPythonPackage , fetchFromGitHub +, fetchpatch , pythonOlder , pytestCheckHook }: @@ -19,6 +20,14 @@ buildPythonPackage rec { sha256 = "1xwx0c1dp2374bwigzwhvcj4577vrxyhn6i5zv73k9ydc7w1xgyz"; }; + patches = [ + (fetchpatch { + # Python3.10 compatibility; https://github.com/nielstron/pyfronius/pull/7 + url = "https://github.com/nielstron/pyfronius/commit/9deb209d4246ff575cd3c4c5373037bf11df6719.patch"; + hash = "sha256-srXYCvp86kGYUYZIXMcu68hEbkTspD945J+hc/AhqSw="; + }) + ]; + propagatedBuildInputs = [ aiohttp ];