# HG changeset patch # User Johannes Bornhold # Date 2016-06-08 20:02:30 # Node ID 578aa36df642ede694da804c0773f05ed3971b72 # Parent f220593cb0ff01bbfe88dfaa35291c6004d56920 dependencies: Add futures as a dependency of Gunicorn. Gunicorn needs futures on Python 2 when used with multiple threads per worker. This is addressing issue #3995. diff --git a/pkgs/python-packages-overrides.nix b/pkgs/python-packages-overrides.nix --- a/pkgs/python-packages-overrides.nix +++ b/pkgs/python-packages-overrides.nix @@ -21,6 +21,14 @@ self: super: { ''; }); + gunicorn = super.gunicorn.override (attrs: { + propagatedBuildInputs = attrs.propagatedBuildInputs ++ [ + # johbo: futures is needed as long as we are on Python 2, otherwise + # gunicorn explodes if used with multiple threads per worker. + self.futures + ]; + }); + kombu = super.kombu.override (attrs: { # The current version of kombu needs some patching to work with the # other libs. Should be removed once we update celery and kombu.