[From nobody Fri May  8 17:25:06 2026
Received: (at submit) by bugs.debian.org; 5 Mar 2026 15:14:08 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-105.2 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
 DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,
 SPF_HELO_NONE,SPF_NONE,UNPARSEABLE_RELAY,USER_IN_DKIM_WELCOMELIST
 autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 83; hammy, 150; neutral, 82; spammy,
 0. spammytokens:
 hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
 0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
 0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: &lt;cjwatson@debian.org&gt;
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:40362)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;cjwatson@debian.org&gt;) id 1vyAOt-007jD1-2i
 for submit@bugs.debian.org; Thu, 05 Mar 2026 15:14:08 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.stravinsky;
 h=X-Debian-User:Content-Type:MIME-Version:Message-ID:
 Subject:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
 Content-Description:In-Reply-To:References;
 bh=0qhe3eTHPoxBsohZX6FkECzdPNujMsyRxW65nlyatnc=; b=bQEIWfzIluw1mWOyqNJ0TMaNDT
 wOVevzOHFBM3sBD9YRRVjNM95T6HkCe16NS4mfIW5LDQ01HnRsuMnOhB7y2bBAHKvYjIWvpOskg2K
 nhfMNjFz3KRr65SbffEqOw6/YS+y3p03ne50N22EPtotpblI0VkE0USIOA5GYM+2waSIrZZJovOSH
 3Ag0BkSgEJIPEXlRrX3bUbX/fPYSoPWRXh7qKbvMYPgnG5YttBPX4zFEairVHo9OJXWcUqPHZf5dh
 p+wI22d3egr6itnm6Xa+Ud3/+ctz/TY2TQPXQ96eQJUSGQC/3OvZXXSebbKGTMFfuubAe2kyGtAug
 PstRL39g==;
Received: from authenticated user by stravinsky.debian.org with esmtpsa
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.94.2) (envelope-from &lt;cjwatson@debian.org&gt;)
 id 1vyAOr-00Goft-Sn
 for submit@bugs.debian.org; Thu, 05 Mar 2026 15:14:06 +0000
Received: from camorr.wl.rosewood.vpn.ucam.org ([172.20.153.148]
 helo=camorr.rosewood.vpn.ucam.org)
 by riva.rosewood.vpn.ucam.org with esmtps (TLS1.3) tls
 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2)
 (envelope-from &lt;cjwatson@debian.org&gt;) id 1vyAOp-0000000D2Y2-0sgX
 for submit@bugs.debian.org; Thu, 05 Mar 2026 15:14:03 +0000
Date: Thu, 5 Mar 2026 15:13:59 +0000
From: Colin Watson &lt;cjwatson@debian.org&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: matrix-synapse: autopkgtests fail:
 synapse.util.check_dependencies.DependencyException: ['pytz']
Message-ID: &lt;aamdt3EXzHoO798j@camorr.rosewood.vpn.ucam.org&gt;
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Reportbug-Version: 13.2.0
X-Debian-User: cjwatson
Delivered-To: submit@bugs.debian.org

Source: matrix-synapse
Version: 1.146.0-3
Severity: serious

matrix-synapse's autopkgtests fail in unstable:

[ERROR]
Traceback (most recent call last):
  File &quot;/tmp/autopkgtest.c94rGi/autopkgtest_tmp/build/tests/unittest.py&quot;, line 128, in new
    return code(orig, *args, **kwargs)
  File &quot;/tmp/autopkgtest.c94rGi/autopkgtest_tmp/build/tests/unittest.py&quot;, line 222, in setUp
    return orig()
  File &quot;/tmp/autopkgtest.c94rGi/autopkgtest_tmp/build/tests/unittest.py&quot;, line 397, in setUp
    self.hs = self.make_homeserver(self.reactor, self.clock)
  File &quot;/tmp/autopkgtest.c94rGi/autopkgtest_tmp/build/tests/handlers/test_saml.py&quot;, line 123, in make_homeserver
    hs = self.setup_test_homeserver()
  File &quot;/tmp/autopkgtest.c94rGi/autopkgtest_tmp/build/tests/unittest.py&quot;, line 671, in setup_test_homeserver
    config_obj = make_homeserver_config_obj(config)
  File &quot;/tmp/autopkgtest.c94rGi/autopkgtest_tmp/build/tests/unittest.py&quot;, line 178, in make_homeserver_config_obj
    config_obj = _parse_config_dict(json.dumps(config, sort_keys=True))
  File &quot;/tmp/autopkgtest.c94rGi/autopkgtest_tmp/build/tests/unittest.py&quot;, line 163, in _parse_config_dict
    config_obj.parse_config_dict(json.loads(config), &quot;&quot;, &quot;&quot;)
  File &quot;/usr/lib/python3/dist-packages/synapse/config/_base.py&quot;, line 929, in parse_config_dict
    self.invoke_all(
  File &quot;/usr/lib/python3/dist-packages/synapse/config/_base.py&quot;, line 448, in invoke_all
    res[config_class.section] = getattr(config, func_name)(*args, **kwargs)
  File &quot;/usr/lib/python3/dist-packages/synapse/config/saml2.py&quot;, line 85, in read_config
    check_requirements(&quot;saml2&quot;)
  File &quot;/usr/lib/python3/dist-packages/synapse/util/check_dependencies.py&quot;, line 371, in check_requirements
    raise DependencyException(deps_unfulfilled)
synapse.util.check_dependencies.DependencyException: ['pytz']

tests.handlers.test_saml.SamlHandlerTestCase.test_attribute_requirements
tests.handlers.test_saml.SamlHandlerTestCase.test_attribute_requirements_one_of
tests.handlers.test_saml.SamlHandlerTestCase.test_map_saml_response_redirect
tests.handlers.test_saml.SamlHandlerTestCase.test_map_saml_response_to_existing_user
tests.handlers.test_saml.SamlHandlerTestCase.test_map_saml_response_to_invalid_localpart
tests.handlers.test_saml.SamlHandlerTestCase.test_map_saml_response_to_user
tests.handlers.test_saml.SamlHandlerTestCase.test_map_saml_response_to_user_retries

This seems to be because python3-pysaml2 no longer depends on pytz 
(correctly, from its point of view), but matrix-synapse's saml2 extra 
specifies a higher minimum version of pytz than saml2 used to need.  I 
think the best thing to do would be to add a direct build-dependency on 
python3-pytz to matrix-synapse until such time as upstream drops that 
requirement from the saml2 extra.

Thanks,

-- 
Colin Watson (he/him)                              [cjwatson@debian.org]
]