diff --git a/srcpkgs/voltron/patches/fix-werkzeug.patch b/srcpkgs/voltron/patches/fix-werkzeug.patch new file mode 100644 index 00000000000..44cd10d6dcb --- /dev/null +++ b/srcpkgs/voltron/patches/fix-werkzeug.patch @@ -0,0 +1,27 @@ +From ba413dcbc1914c511d03e1d95f3663a91daf349a Mon Sep 17 00:00:00 2001 +From: "Sean Francis N. Ballais" +Date: Wed, 27 May 2020 00:44:21 +0800 +Subject: [PATCH] Fixes #271 (#276) + +* Add support for werkzeug 1.0. + + +Co-authored-by: zcutlip +--- + voltron/core.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/voltron/core.py b/voltron/core.py +index f22f375..351a0ea 100644 +--- voltron/core.py ++++ voltron/core.py +@@ -15,7 +15,8 @@ + import voltron + from flask import Flask, Response, make_response, redirect, render_template, request + from werkzeug.serving import BaseWSGIServer, ThreadedWSGIServer, WSGIRequestHandler +-from werkzeug.wsgi import DispatcherMiddleware, SharedDataMiddleware ++from werkzeug.middleware.dispatcher import DispatcherMiddleware ++from werkzeug.middleware.shared_data import SharedDataMiddleware + from requests import ConnectionError + + diff --git a/srcpkgs/voltron/template b/srcpkgs/voltron/template index 45325a8a4e5..23731b3e01d 100644 --- a/srcpkgs/voltron/template +++ b/srcpkgs/voltron/template @@ -1,10 +1,9 @@ # Template file for 'voltron' pkgname=voltron version=0.1.7 -revision=3 +revision=4 archs=noarch build_style=python3-module -pycompile_module="voltron" hostmakedepends="python3-setuptools" depends="python3-blessed python3-Flask python3-Pygments python3-pysigset python3-requests python3-scruffy python3-requests-unixsocket