From 58dc1e2a6f088d53129a66b3298992056413fec7 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Tue, 10 Sep 2019 16:33:48 +0200 Subject: [PATCH] matrix-synapse: fix startup Currently, `setuptools` isn't propagated automatically to python packages[1] which causes the following error when starting `matrix-synapse`: ``` Traceback (most recent call last): File "/nix/store/xxkds7821mrahfx75az0sq3ryf69m612-matrix-synapse-1.3.1/bin/.homeserver-wrapped", line 39, in import synapse.config.logger File "/nix/store/xxkds7821mrahfx75az0sq3ryf69m612-matrix-synapse-1.3.1/lib/python3.7/site-packages/synapse/config/logger.py", line 27, in from synapse.app import _base as appbase File "/nix/store/xxkds7821mrahfx75az0sq3ryf69m612-matrix-synapse-1.3.1/lib/python3.7/site-packages/synapse/app/__init__.py", line 18, in E402 File "/nix/store/xxkds7821mrahfx75az0sq3ryf69m612-matrix-synapse-1.3.1/lib/python3.7/site-packages/synapse/python_dependencies.py", line 19, in from pkg_resources import ( No module named 'pkg_resources' ``` [1] https://github.com/NixOS/nixpkgs/pull/68314 --- pkgs/servers/matrix-synapse/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/servers/matrix-synapse/default.nix b/pkgs/servers/matrix-synapse/default.nix index 8da9cef58a75..ab9a69afdcb8 100644 --- a/pkgs/servers/matrix-synapse/default.nix +++ b/pkgs/servers/matrix-synapse/default.nix @@ -36,6 +36,7 @@ in buildPythonApplication rec { ]; propagatedBuildInputs = [ + setuptools bcrypt bleach canonicaljson