Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: matrix-synapse 1.152.0 -> 1.152.1 https://repology.org/project/matrix-synapse/versions attrpath: matrix-synapse Checking auto update branch... No auto update branch exists Old version 1.152.0" not present in master derivation file with contents: { lib, stdenv, fetchFromGitHub, python3Packages, openssl, libiconv, cargo, rustPlatform, rustc, nixosTests, nix-update-script, }: python3Packages.buildPythonApplication rec { pname = "matrix-synapse"; version = "1.152.1"; pyproject = true; src = fetchFromGitHub { owner = "element-hq"; repo = "synapse"; rev = "v${version}"; hash = "sha256-81nqT6/TuqtQjjqnT6O+72WCCPlZ9JJKbWczMh6mbcU="; }; cargoDeps = rustPlatform.fetchCargoVendor { inherit pname version src; hash = "sha256-RwUsiS6JM5dmqquKVtyaBp67DYZys6Uecy0V6AabTk4="; }; build-system = with python3Packages; [ poetry-core setuptools-rust ] ++ [ rustPlatform.maturinBuildHook ]; nativeBuildInputs = [ rustPlatform.cargoSetupHook cargo rustc ]; buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ]; dependencies = with python3Packages; [ attrs bcrypt bleach canonicaljson cryptography ijson immutabledict jinja2 jsonschema matrix-common msgpack python-multipart netaddr packaging phonenumbers pillow prometheus-client pyasn1 pyasn1-modules pydantic pymacaroons pyopenssl pyparsing pyrsistent pyyaml service-identity signedjson sortedcontainers treq twisted typing-extensions unpaddedbase64 ] ++ twisted.optional-dependencies.tls; optional-dependencies = with python3Packages; { postgres = if isPyPy then [ psycopg2cffi ] else [ psycopg2 ]; saml2 = [ pysaml2 ]; oidc = [ authlib ]; systemd = [ systemd-python ]; url-preview = [ lxml ]; sentry = [ sentry-sdk ]; jwt = [ authlib ]; redis = [ hiredis txredisapi ]; cache-memory = [ pympler ]; }; nativeCheckInputs = [ openssl ] ++ (with python3Packages; [ mock parameterized ]) ++ lib.filter (pkg: !pkg.meta.broken) (lib.concatAttrValues optional-dependencies); doCheck = !stdenv.hostPlatform.isDarwin; checkPhase = '' runHook preCheck # remove src module, so tests use the installed module instead rm -rf ./synapse # high parallelisem makes test suite unstable # upstream uses 2 cores but 4 seems to be also stable # https://github.com/element-hq/synapse/blob/develop/.github/workflows/latest_deps.yml#L103 if (( $NIX_BUILD_CORES > 4)); then NIX_BUILD_CORES=4 fi PYTHONPATH=".:$PYTHONPATH" ${python3Packages.python.interpreter} -m twisted.trial -j $NIX_BUILD_CORES tests runHook postCheck ''; passthru = { tests = { inherit (nixosTests) matrix-synapse matrix-synapse-workers; }; plugins = python3Packages.callPackage ./plugins { }; inherit (python3Packages) python; updateScript = nix-update-script { }; }; meta = { homepage = "https://matrix.org"; changelog = "https://github.com/element-hq/synapse/releases/tag/v${version}"; description = "Matrix reference homeserver"; license = lib.licenses.agpl3Plus; maintainers = with lib.maintainers; [ sumnerevans ]; teams = [ lib.teams.matrix ]; platforms = lib.platforms.linux; }; }