diff --git a/pkgs/development/python-modules/meteofrance-api/default.nix b/pkgs/development/python-modules/meteofrance-api/default.nix index dadd872adcda..5e738adb62bf 100644 --- a/pkgs/development/python-modules/meteofrance-api/default.nix +++ b/pkgs/development/python-modules/meteofrance-api/default.nix @@ -43,6 +43,12 @@ buildPythonPackage rec { requests-mock ]; + postPatch = '' + # https://github.com/hacf-fr/meteofrance-api/pull/378 + substituteInPlace pyproject.toml \ + --replace 'pytz = ">=2020.4,<2022.0"' 'pytz = ">=2020.4,<2023.0"' + ''; + pythonImportsCheck = [ "meteofrance_api" ];