From bcc1604713d02f9dc7346c49afda41d4d75a67fb Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sat, 30 Apr 2016 15:54:30 +0200 Subject: [PATCH] python-Sphinx: patch for babel>=1.3 compatibility --- srcpkgs/python-Sphinx/patches/babel-1.3-fix.patch | 10 ++++++++++ srcpkgs/python-Sphinx/template | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/python-Sphinx/patches/babel-1.3-fix.patch diff --git a/srcpkgs/python-Sphinx/patches/babel-1.3-fix.patch b/srcpkgs/python-Sphinx/patches/babel-1.3-fix.patch new file mode 100644 index 00000000000..e49463cf2f1 --- /dev/null +++ b/srcpkgs/python-Sphinx/patches/babel-1.3-fix.patch @@ -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() diff --git a/srcpkgs/python-Sphinx/template b/srcpkgs/python-Sphinx/template index d0ed01feea3..62f44fa9c39 100644 --- a/srcpkgs/python-Sphinx/template +++ b/srcpkgs/python-Sphinx/template @@ -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