diff --git a/pkgs/development/python-modules/python-matter-server/default.nix b/pkgs/development/python-modules/python-matter-server/default.nix index ae9037129b1e..b4b42736a2ab 100644 --- a/pkgs/development/python-modules/python-matter-server/default.nix +++ b/pkgs/development/python-modules/python-matter-server/default.nix @@ -57,16 +57,16 @@ in buildPythonPackage rec { pname = "python-matter-server"; - version = "7.0.1"; + version = "8.0.0"; pyproject = true; - disabled = pythonOlder "3.10"; + disabled = pythonOlder "3.12"; src = fetchFromGitHub { owner = "home-assistant-libs"; repo = "python-matter-server"; - rev = "refs/tags/${version}"; - hash = "sha256-kwN7mLSKrxsAydp7PnN7kTvvi5zQSpXVwMh2slL6aIA="; + tag = version; + hash = "sha256-9dMcofwvGYBnI+9y7D+TDwz+uLgBVhcS4iVU7AUqclI="; }; patches = [ @@ -77,7 +77,7 @@ buildPythonPackage rec { postPatch = '' substituteInPlace pyproject.toml \ - --replace 'version = "0.0.0"' 'version = "${version}"' + --replace-fail 'version = "0.0.0"' 'version = "${version}"' ''; build-system = [ @@ -124,12 +124,12 @@ buildPythonPackage rec { "tests/server/ota/test_dcl.py" ]; - meta = with lib; { - changelog = "https://github.com/home-assistant-libs/python-matter-server/releases/tag/${version}"; + meta = { + changelog = "https://github.com/home-assistant-libs/python-matter-server/releases/tag/${src.tag}"; description = "Python server to interact with Matter"; mainProgram = "matter-server"; homepage = "https://github.com/home-assistant-libs/python-matter-server"; - license = licenses.asl20; - teams = [ teams.home-assistant ]; + license = lib.licenses.asl20; + teams = [ lib.teams.home-assistant ]; }; }