Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.8 kB · 88 lines
Nix
at litex
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
# build, setuptools
# propagates, aiohttp, aiorun, coloredlogs, dacite, orjson, home-assistant-chip-clusters
# optionals, cryptography, home-assistant-chip-core
# tests, python, pytest, pytest-aiohttp, pytestCheckHook}:
buildPythonPackage rec { pname = "python-matter-server"; version = "3.4.2"; format = "pyproject";
disabled = pythonOlder "3.10";
src = fetchFromGitHub { owner = "home-assistant-libs"; repo = "python-matter-server"; rev = "refs/tags/${version}"; hash = "sha256-C46GrCoilOYVZvuvYIOwyJM16tpJtm8cknqdAzhew7I="; };
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ aiohttp aiorun coloredlogs dacite orjson home-assistant-chip-clusters ];
passthru.optional-dependencies = { server = [ cryptography home-assistant-chip-core ]; };
nativeCheckInputs = [ pytest-aiohttp pytestCheckHook ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
preCheck = let pythonEnv = python.withPackages (_: propagatedBuildInputs ++ nativeCheckInputs ++ [ pytest ]); in '' export PYTHONPATH=${pythonEnv}/${python.sitePackages} '';
pytestFlagsArray = [ # Upstream theymselves limit the test scope # https://github.com/home-assistant-libs/python-matter-server/blob/main/.github/workflows/test.yml#L65 "tests/server" ];
meta = with lib; { changelog = "https://github.com/home-assistant-libs/python-matter-server/releases/tag/${version}"; description = "Python server to interact with Matter"; homepage = "https://github.com/home-assistant-libs/python-matter-server"; license = licenses.asl20; maintainers = teams.home-assistant.members; };}