9 buildPythonPackage rec {
10 pname = "flask-reverse-proxy-fix";
12 format = "setuptools";
14 # master fixes flask import syntax and has no major changes
15 # new release requested: https://github.com/sublee/flask-silk/pull/6
16 src = fetchFromGitHub {
18 repo = "flask-reverse-proxy-fix";
20 hash = "sha256-ZRZI1psr1dnY2FbuLZXOQvLMJd4TF7BfBNZnW9kxeck=";
24 sed -i 's@werkzeug.contrib.fixers@werkzeug.middleware.proxy_fix@g' flask_reverse_proxy_fix/middleware/__init__.py
27 # This is needed so that setup.py does not add "devNone" to the version,
28 # after which setuptools throws an error for an invalid version.
29 env.CI_COMMIT_TAG = "v${version}";
31 propagatedBuildInputs = [
37 description = "Python Flask middleware for applications running under a reverse proxy";
38 maintainers = with maintainers; [ matthiasbeyer ];
39 homepage = "https://github.com/antarctica/flask-reverse-proxy-fix";
42 fullName = "Open Government Licence";
43 url = "http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/";