--- /dev/null
+From 0a4d2a9724ad7ac4e332f0016bd2027a5a8ad33e Mon Sep 17 00:00:00 2001
+From: Wojciech Kryscinski <wojciech.kryscinski@fornax.co>
+Date: Mon, 6 Jun 2016 12:17:05 +0000
+Subject: [PATCH] Removed Module from imports. It was deprecated and removed
+ from flask
+
+---
+ flask_uploads.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/flask_uploads.py b/flask_uploads.py
+index ebbc395..a10b72c 100644
+--- a/flask_uploads.py
++++ b/flask_uploads.py
+@@ -21,7 +21,7 @@
+ import os.path
+ import posixpath
+
+-from flask import current_app, Module, send_from_directory, abort, url_for
++from flask import current_app, send_from_directory, abort, url_for
+ from itertools import chain
+ from werkzeug import secure_filename, FileStorage
+
--- /dev/null
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5} pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="Flexible and efficient upload handling for Flask"
+HOMEPAGE="http://pythonhosted.org/Flask-Testing/
+ https://pypi.python.org/pypi/Flask-Testing/"
+SRC_URI="https://github.com/maxcountryman/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+# use the GitHub tarball since the pypi-tarball does not contain the tests
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND=">=dev-python/flask-0.5[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( dev-python/nose[${PYTHON_USEDEP}] )"
+
+PATCHES=( "${FILESDIR}/${P}-remove-deprecated-module.patch" )
+
+python_test() {
+ nosetests || die "Testing failed with ${EPYTHON}"
+}