Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071{ lib, buildPythonPackage, fetchFromGitHub,
# build-system setuptools,
# dependencies aiohttp, orjson, home-assistant-chip-clusters,
# tests pytest-asyncio, pytest-aiohttp, pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "matter-python-client"; version = "1.4.0"; pyproject = true;
src = fetchFromGitHub { owner = "matter-js"; repo = "matterjs-server"; tag = "v${finalAttrs.version}"; hash = "sha256-eJSDTg00H/G2pPdVC23HiLLjPA8n1vCpqpAZgtUXl78="; };
sourceRoot = "${finalAttrs.src.name}/python_client";
postPatch = '' substituteInPlace pyproject.toml \ --replace 'version = "0.0.0"' 'version = "${finalAttrs.version}"' '';
build-system = [ setuptools ];
dependencies = [ aiohttp orjson home-assistant-chip-clusters ];
nativeCheckInputs = [ pytest-asyncio pytest-aiohttp pytestCheckHook ];
disabledTestPaths = [ # requires npx and network access to start matterjs "tests/test_client_integration.py" "tests/test_integration.py" ];
pythonImportsCheck = [ "matter_server.client" ];
meta = { changelog = "https://github.com/matter-js/matterjs-server/blob/${finalAttrs.src.tag}/CHANGELOG.md"; description = "Python Client for the OHF Matter Server"; homepage = "https://github.com/matter-js/matterjs-server/tree/main/python_client"; license = lib.licenses.asl20; teams = [ lib.teams.home-assistant ]; };})