19 home-assistant-chip-clusters,
23 home-assistant-chip-core,
35 paaCerts = stdenvNoCC.mkDerivation rec {
36 pname = "matter-server-paa-certificates";
39 src = fetchFromGitHub {
40 owner = "project-chip";
41 repo = "connectedhomeip";
42 rev = "refs/tags/v${version}";
43 hash = "sha256-5MI6r0KhSTzolesTQ8YWeoko64jFu4jHfO5KOOKpV0A=";
50 cp $src/credentials/development/paa-root-certs/* $out/
57 buildPythonPackage rec {
58 pname = "python-matter-server";
62 disabled = pythonOlder "3.10";
64 src = fetchFromGitHub {
65 owner = "home-assistant-libs";
66 repo = "python-matter-server";
67 rev = "refs/tags/${version}";
68 hash = "sha256-g+97a/X0FSapMLfdW6iNf1akkHGLqCmHYimQU/M6loo=";
73 src = ./link-paa-root-certs.patch;
79 substituteInPlace pyproject.toml \
80 --replace 'version = "0.0.0"' 'version = "${version}"' \
88 pythonRelaxDeps = [ "home-assistant-chip-clusters" ];
97 home-assistant-chip-clusters
100 optional-dependencies = {
103 home-assistant-chip-core
108 nativeCheckInputs = [
112 ] ++ lib.flatten (lib.attrValues optional-dependencies);
116 pythonEnv = python.withPackages (_: dependencies ++ nativeCheckInputs ++ [ pytest ]);
119 export PYTHONPATH=${pythonEnv}/${python.sitePackages}
123 # Upstream theymselves limit the test scope
124 # https://github.com/home-assistant-libs/python-matter-server/blob/main/.github/workflows/test.yml#L65
129 changelog = "https://github.com/home-assistant-libs/python-matter-server/releases/tag/${version}";
130 description = "Python server to interact with Matter";
131 mainProgram = "matter-server";
132 homepage = "https://github.com/home-assistant-libs/python-matter-server";
133 license = licenses.asl20;
134 maintainers = teams.home-assistant.members;