biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / python-matter-server / link-paa-root-certs.patch
blobf7b09bb0aff62dadae5292e5c1bb92bf0eb9ae0c
1 From f45cf9898f2e5a3a4c2b73a9ed84c4a037a85a1e Mon Sep 17 00:00:00 2001
2 From: Matt Leon <ml@mattleon.com>
3 Date: Sat, 1 Jun 2024 23:28:41 -0400
4 Subject: [PATCH] Symlink PAA root certificates to nix store
6 ---
7 matter_server/server/const.py | 2 ++
8 matter_server/server/helpers/paa_certificates.py | 6 ++++++
9 2 files changed, 8 insertions(+)
11 diff --git a/matter_server/server/const.py b/matter_server/server/const.py
12 index 8cca3cf..43f02f5 100644
13 --- a/matter_server/server/const.py
14 +++ b/matter_server/server/const.py
15 @@ -14,6 +14,8 @@ DATA_MODEL_SCHEMA_VERSION = 6
16 # Keep default location inherited from early version of the Python
17 # bindings.
18 DEFAULT_PAA_ROOT_CERTS_DIR: Final[pathlib.Path] = (
19 + pathlib.Path("@paacerts@"))
21 pathlib.Path(__file__)
22 .parent.resolve()
23 .parent.resolve()
24 diff --git a/matter_server/server/helpers/paa_certificates.py b/matter_server/server/helpers/paa_certificates.py
25 index de60c78..185e54c 100644
26 --- a/matter_server/server/helpers/paa_certificates.py
27 +++ b/matter_server/server/helpers/paa_certificates.py
28 @@ -105,6 +105,8 @@ async def fetch_dcl_certificates(
29 base_url: str,
30 ) -> int:
31 """Fetch DCL PAA Certificates."""
32 + return 0
34 fetch_count: int = 0
36 try:
37 @@ -151,6 +153,8 @@ async def fetch_dcl_certificates(
39 async def fetch_git_certificates(paa_root_cert_dir: Path) -> int:
40 """Fetch Git PAA Certificates."""
41 + return 0
43 fetch_count = 0
44 LOGGER.info("Fetching the latest PAA root certificates from Git.")
46 @@ -185,6 +189,8 @@ async def fetch_certificates(
47 fetch_production_certificates: bool = True,
48 ) -> int:
49 """Fetch PAA Certificates."""
50 + return 0
52 loop = asyncio.get_running_loop()
53 paa_root_cert_dir_version = paa_root_cert_dir / ".version"
55 --
56 2.44.1