diff --git a/APKBUILD b/APKBUILD index 443d4d6..2074075 100644 --- a/APKBUILD +++ b/APKBUILD @@ -7,7 +7,7 @@ pkgdesc="VM and application manager" url="https://spotter.vm/" arch="noarch" license="GPL" -depends="acme.sh python3 py3-bcrypt py3-cffi py3-cryptography py3-dnspython py3-jinja2 py3-requests py3-six py3-werkzeug wireguard-virt wireguard-tools-wg" +depends="acme.sh python3 py3-bcrypt py3-cffi py3-cryptography py3-dnspython py3-jinja2 py3-requests py3-secure-cookie py3-six py3-werkzeug wireguard-virt wireguard-tools-wg" options="!check !strip" build() { diff --git a/usr/lib/python3.8/vmmgr/wsgisession.py b/usr/lib/python3.8/vmmgr/wsgisession.py index 938ba06..edb23f0 100644 --- a/usr/lib/python3.8/vmmgr/wsgisession.py +++ b/usr/lib/python3.8/vmmgr/wsgisession.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -from werkzeug.contrib.securecookie import SecureCookie +from secure_cookie.cookie import SecureCookie class WSGISession: def __init__(self, cookies, secret_key): diff --git a/usr/share/vmmgr/wsgi.py b/usr/share/vmmgr/wsgi.py index b870028..fc3e6ac 100755 --- a/usr/share/vmmgr/wsgi.py +++ b/usr/share/vmmgr/wsgi.py @@ -7,7 +7,7 @@ application = WSGIApp() if __name__ == '__main__': import os - from werkzeug.contrib.fixers import ProxyFix + from werkzeug.middleware.proxy_fix import ProxyFix from werkzeug.serving import run_simple run_simple('127.0.0.1', 8080, ProxyFix(application), threaded=True)