matrix-synapse: relax build dependencies

This commit is contained in:
Theodore Ni 2023-08-21 21:50:50 -07:00
parent dfe898c801
commit 786f7a0b8f
No known key found for this signature in database
GPG key ID: 48B67583BDDD4474

View file

@ -36,6 +36,11 @@ python3.pkgs.buildPythonApplication rec {
# Remove setuptools_rust from runtime dependencies
# https://github.com/matrix-org/synapse/blob/v1.69.0/pyproject.toml#L177-L185
sed -i '/^setuptools_rust =/d' pyproject.toml
# Remove version pin on build dependencies. Upstream does this on purpose to
# be extra defensive, but we don't want to deal with updating this
sed -i 's/"poetry-core>=\([0-9.]*\),<=[0-9.]*"/"poetry-core>=\1"/' pyproject.toml
sed -i 's/"setuptools_rust>=\([0-9.]*\),<=[0-9.]*"/"setuptools_rust>=\1"/' pyproject.toml
'';
nativeBuildInputs = with python3.pkgs; [