diff --git a/pkgs/development/python-modules/dateparser/default.nix b/pkgs/development/python-modules/dateparser/default.nix index 7f92077c0c73..6d113b178c5a 100644 --- a/pkgs/development/python-modules/dateparser/default.nix +++ b/pkgs/development/python-modules/dateparser/default.nix @@ -29,6 +29,13 @@ buildPythonPackage rec { sha256 = "sha256-bDup3q93Zq+pvwsy/lQy2byOMjG6C/+7813hWQMbZRU="; }; + postPatch = '' + # https://github.com/scrapinghub/dateparser/issues/1053 + substituteInPlace tests/test_search.py --replace \ + "('June 2020', datetime.datetime(2020, 6, datetime.datetime.utcnow().day, 0, 0))," \ + "('June 2020', datetime.datetime(2020, 6, min(30, datetime.datetime.utcnow().day), 0, 0))," + ''; + propagatedBuildInputs = [ # install_requires python-dateutil pytz regex tzlocal