mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
python-Sphinx: patch for babel>=1.3 compatibility
This commit is contained in:
parent
c1bcd272c4
commit
bcc1604713
2 changed files with 11 additions and 1 deletions
10
srcpkgs/python-Sphinx/patches/babel-1.3-fix.patch
Normal file
10
srcpkgs/python-Sphinx/patches/babel-1.3-fix.patch
Normal 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()
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python-Sphinx'
|
# Template file for 'python-Sphinx'
|
||||||
pkgname=python-Sphinx
|
pkgname=python-Sphinx
|
||||||
version=1.4.1
|
version=1.4.1
|
||||||
revision=2
|
revision=3
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="Sphinx-${version}"
|
wrksrc="Sphinx-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
|
|
Loading…
Add table
Reference in a new issue