Skip to content

Commit

Permalink
Merge pull request #189312 from mweinelt/dateparser-patch-flaky-test
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Sep 1, 2022
2 parents cc5f7c2 + 0cece84 commit dc47970
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/development/python-modules/dateparser/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dc47970

Please sign in to comment.