python3Packages.matter-python-client: init at 0.4.3
This commit is contained in:
committed by
Robert Schütz
parent
4c701c5b87
commit
a8ad95943c
@@ -0,0 +1,69 @@
|
||||
{
|
||||
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 = "0.4.3";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "matter-js";
|
||||
repo = "matterjs-server";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-SnOo6AQzkIqlZPTDe/dhA1EJ8oTBg37zfjiqheGYxIM=";
|
||||
};
|
||||
|
||||
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 = {
|
||||
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 ];
|
||||
};
|
||||
})
|
||||
@@ -9537,6 +9537,8 @@ self: super: with self; {
|
||||
|
||||
matrix-nio = callPackage ../development/python-modules/matrix-nio { };
|
||||
|
||||
matter-python-client = callPackage ../development/python-modules/matter-python-client { };
|
||||
|
||||
mattermostdriver = callPackage ../development/python-modules/mattermostdriver { };
|
||||
|
||||
maubot = callPackage ../development/python-modules/maubot { };
|
||||
|
||||
Reference in New Issue
Block a user