19 , home-assistant-chip-clusters
23 , home-assistant-chip-core
34 paaCerts = stdenvNoCC.mkDerivation rec {
35 pname = "matter-server-paa-certificates";
38 src = fetchFromGitHub {
39 owner = "project-chip";
40 repo = "connectedhomeip";
41 rev = "refs/tags/v${version}";
42 hash = "sha256-p3P0n5oKRasYz386K2bhN3QVfN6oFndFIUWLEUWB0ss=";
49 cp $src/credentials/development/paa-root-certs/* $out/
56 buildPythonPackage rec {
57 pname = "python-matter-server";
61 disabled = pythonOlder "3.10";
63 src = fetchFromGitHub {
64 owner = "home-assistant-libs";
65 repo = "python-matter-server";
66 rev = "refs/tags/${version}";
67 hash = "sha256-O3AJ7vBjuwRGa4AMwWIdxn5m2F45rLCjCHeff18b/5E=";
72 src = ./link-paa-root-certs.patch;
78 substituteInPlace pyproject.toml \
79 --replace 'version = "0.0.0"' 'version = "${version}"' \
89 "home-assistant-chip-clusters"
92 propagatedBuildInputs = [
99 home-assistant-chip-clusters
102 passthru.optional-dependencies = {
105 home-assistant-chip-core
110 nativeCheckInputs = [
114 ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
117 pythonEnv = python.withPackages (_: propagatedBuildInputs ++ nativeCheckInputs ++ [ pytest ]);
120 export PYTHONPATH=${pythonEnv}/${python.sitePackages}
124 # Upstream theymselves limit the test scope
125 # https://github.com/home-assistant-libs/python-matter-server/blob/main/.github/workflows/test.yml#L65
130 changelog = "https://github.com/home-assistant-libs/python-matter-server/releases/tag/${version}";
131 description = "Python server to interact with Matter";
132 mainProgram = "matter-server";
133 homepage = "https://github.com/home-assistant-libs/python-matter-server";
134 license = licenses.asl20;
135 maintainers = teams.home-assistant.members;