From cfb5ca06dbd5896a5acfe9666efae1b989a68222 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 19 Apr 2022 08:43:35 +0200 Subject: [PATCH] python3Packages.meteofrance-api: adjust pytz constraint --- pkgs/development/python-modules/meteofrance-api/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/meteofrance-api/default.nix b/pkgs/development/python-modules/meteofrance-api/default.nix index dadd872adcd..5e738adb62b 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" ];