Hi, The patch from arch maintainer fixes the issue See: https://raw.githubusercontent.com/archlinux/svntogit-community/packages/python-jinja-time/trunk/python-jinja-time-0.2.0-arrow_shift.patch
Best. On Sat, 2 Nov 2019 18:11:35 -0700 Steve Langasek < steve.langa...@canonical.com> wrote: > Source: jinja2-time > Version: 0.2.0-2 > Severity: serious > User: ubuntu-de...@lists.ubuntu.com > Usertags: origin-ubuntu focal > > Hi Vincent, > > The jinja2-time source package currently fails to build from source in > unstable: > > [...] > tests/test_now.py ......FFF [100%] > > =================================== FAILURES =================================== > ________________________________ test_add_time _________________________________ > > environment = <jinja2.environment.Environment object at 0x7efefa14c810> > > def test_add_time(environment): > environment.datetime_format = '%a, %d %b %Y %H:%M:%S' > > template = environment.from_string( > "{% now 'utc' + 'hours=2,seconds=30' %}" > ) > > > assert template.render() == "Thu, 10 Dec 2015 01:33:31" > > tests/test_now.py:61: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > /usr/lib/python3/dist-packages/jinja2/asyncsupport.py:76: in render > return original_render(self, *args, **kwargs) > /usr/lib/python3/dist-packages/jinja2/environment.py:1008: in render > return self.environment.handle_exception(exc_info, True) > /usr/lib/python3/dist-packages/jinja2/environment.py:780: in handle_exception > reraise(exc_type, exc_value, tb) > /usr/lib/python3/dist-packages/jinja2/_compat.py:37: in reraise > raise value.with_traceback(tb) > <template>:1: in top-level template code > ??? > jinja2_time/jinja2_time.py:26: in _datetime > d = d.replace(**replace_params) > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > > self = <Arrow [2015-12-09T23:33:01+00:00]> > kwargs = {'hours': 2.0, 'seconds': 30.0}, absolute_kwargs = {}, key = 'hours' > value = 2.0 > > def replace(self, **kwargs): > """ Returns a new :class:`Arrow <arrow.arrow.Arrow>` object with attributes updated > according to inputs. > > Use property names to set their value absolutely:: > > >>> import arrow > >>> arw = arrow.utcnow() > >>> arw > <Arrow [2013-05-11T22:27:34.787885+00:00]> > >>> arw.replace(year=2014, month=6) > <Arrow [2014-06-11T22:27:34.787885+00:00]>