pythonPackages.flask-reverse-proxy-fix: fix build

This commit is contained in:
Edmund Wu 2020-06-23 15:53:38 -04:00
parent f166a13c7d
commit 12b0644a20
No known key found for this signature in database
GPG Key ID: F44F23D596B4F71D

View File

@ -3,6 +3,7 @@
, fetchFromGitHub , fetchFromGitHub
, isPy3k , isPy3k
, flask , flask
, werkzeug
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -20,8 +21,13 @@ buildPythonPackage rec {
disabled = !isPy3k; disabled = !isPy3k;
postPatch = ''
sed -i 's@werkzeug.contrib.fixers@werkzeug.middleware.proxy_fix@g' flask_reverse_proxy_fix/middleware/__init__.py
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
flask flask
werkzeug
]; ];
meta = with stdenv.lib; { meta = with stdenv.lib; {