python-Sphinx: patch for babel>=1.3 compatibility

This commit is contained in:
Alessio Sergi 2016-04-30 15:54:30 +02:00
parent c1bcd272c4
commit bcc1604713
2 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1,10 @@
--- sphinx/util/i18n.py.orig
+++ sphinx/util/i18n.py
@@ -188,7 +188,7 @@ def format_date(format, date=None, language=None, warn=None):
# See https://wiki.debian.org/ReproducibleBuilds/TimestampsProposal
source_date_epoch = os.getenv('SOURCE_DATE_EPOCH')
if source_date_epoch is not None:
- date = gmtime(float(source_date_epoch))
+ date = datetime.utcfromtimestamp(float(source_date_epoch))
else:
date = datetime.now()

View file

@ -1,7 +1,7 @@
# Template file for 'python-Sphinx'
pkgname=python-Sphinx
version=1.4.1
revision=2
revision=3
noarch=yes
wrksrc="Sphinx-${version}"
build_style=python-module