{ lib , buildPythonPackage , fetchpatch , fetchPypi , setuptools , wheel }: buildPythonPackage rec { pname = "knx-frontend"; version = "2023.6.23.191712"; format = "pyproject"; # TODO: source build, uses yarn.lock src = fetchPypi { pname = "knx_frontend"; inherit version; hash = "sha256-MeurZ6731qjeBK6HTwXYLVs6+nXF9Hf1p8/NNwxmae4="; }; patches = [ # https://github.com/XKNX/knx-frontend/pull/96 (fetchpatch { name = "relax-setuptools-dependency.patch"; url = "https://github.com/XKNX/knx-frontend/commit/72ac6dc42eeeb488992b0709ee58ea4a79287817.patch"; hash = "sha256-EpfgEq4pIx7ahqJZalzo30ruj8NlZYHcKHxFXCGL98w="; }) ]; nativeBuildInputs = [ setuptools wheel ]; pythonImportsCheck = [ "knx_frontend" ]; # no tests doCheck = false; meta = with lib; { changelog = "https://github.com/XKNX/knx-frontend/releases/tag/${version}"; description = "Home Assistant Panel for managing the KNX integration"; homepage = "https://github.com/XKNX/knx-frontend"; license = licenses.mit; maintainers = with maintainers; [ hexa ]; }; }