diff --git a/pkgs/development/python-modules/python-benedict/default.nix b/pkgs/development/python-modules/python-benedict/default.nix index ada0ded7e79a..96601c6750ac 100644 --- a/pkgs/development/python-modules/python-benedict/default.nix +++ b/pkgs/development/python-modules/python-benedict/default.nix @@ -32,6 +32,11 @@ buildPythonPackage rec { hash = "sha256-WSsT+p23VctVt9A+WFKNHcgUHFijfT775eMF3RzaXDA="; }; + postPatch = '' + substituteInPlace setup.py \ + --replace "mailchecker >= 4.1.0, < 5.0.0" "mailchecker >= 4.1.0" + ''; + propagatedBuildInputs = [ mailchecker phonenumbers