mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge pull request #189312 from mweinelt/dateparser-patch-flaky-test
This commit is contained in:
commit
dc47970fbe
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue