matrix-synapse: 1.68.0 -> 1.69.0

main
Nick Cao 2 years ago
parent b593442345
commit 7c0cf03e64
No known key found for this signature in database
  1. 20
      pkgs/servers/matrix-synapse/default.nix

@ -1,4 +1,4 @@
{ lib, stdenv, python3, openssl, rustPlatform { lib, stdenv, fetchFromGitHub, python3, openssl, rustPlatform
, enableSystemd ? stdenv.isLinux, nixosTests , enableSystemd ? stdenv.isLinux, nixosTests
, enableRedis ? true , enableRedis ? true
, callPackage , callPackage
@ -11,26 +11,22 @@ in
with python3.pkgs; with python3.pkgs;
buildPythonApplication rec { buildPythonApplication rec {
pname = "matrix-synapse"; pname = "matrix-synapse";
version = "1.68.0"; version = "1.69.0";
format = "pyproject"; format = "pyproject";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "matrix-org";
hash = "sha256-jQcprvKEbLuLWth0aWeh5mi/v8z83GIrjCsm3JdJcUM="; repo = "synapse";
rev = "v${version}";
hash = "sha256-Epzvxy3w8Xdj8xz8GEry97J7zGudIgjUH51NcibKDvQ=";
}; };
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
inherit src; inherit src;
name = "${pname}-${version}"; name = "${pname}-${version}";
hash = "sha256-k8iAYRgFCuv6QYAUW5kSEwFSEXVNAEGpPya7biS1Vlo="; hash = "sha256-RJq4mdPtnAR45rAycGDSSuvZwkJPOiqFBp+8mnBTKvU=";
}; };
postPatch = ''
# Remove setuptools_rust from runtime dependencies
# https://github.com/matrix-org/synapse/blob/v1.68.0/pyproject.toml#L177-L185
sed -i '/^setuptools_rust =/d' pyproject.toml
'';
nativeBuildInputs = [ nativeBuildInputs = [
poetry-core poetry-core
rustPlatform.cargoSetupHook rustPlatform.cargoSetupHook

Loading…
Cancel
Save