diff --git a/invenio_records_resources/services/custom_fields/date.py b/invenio_records_resources/services/custom_fields/date.py index 7bc879ed..30070c3c 100644 --- a/invenio_records_resources/services/custom_fields/date.py +++ b/invenio_records_resources/services/custom_fields/date.py @@ -10,7 +10,7 @@ import calendar from arrow import Arrow -from edtf import parse_edtf +from babel_edtf import parse_edtf from edtf.parser.edtf_exceptions import EDTFParseException from marshmallow import fields from marshmallow_utils.fields import EDTFDateString, ISODateString diff --git a/setup.cfg b/setup.cfg index 575312e3..1e31069d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -28,6 +28,7 @@ packages = find: python_requires = >=3.7 zip_safe = False install_requires = + babel-edtf>=1.1.0 flask-resources>=1.0.0,<2.0.0 invenio-accounts>=3.0.0,<4.0.0 invenio-base>=1.2.12,<2.0.0