1{ lib
2, buildPythonPackage
3, fetchpatch
4, fetchPypi
5, setuptools
6, wheel
7}:
8
9buildPythonPackage rec {
10 pname = "knx-frontend";
11 version = "2023.6.23.191712";
12 format = "pyproject";
13
14 # TODO: source build, uses yarn.lock
15 src = fetchPypi {
16 pname = "knx_frontend";
17 inherit version;
18 hash = "sha256-MeurZ6731qjeBK6HTwXYLVs6+nXF9Hf1p8/NNwxmae4=";
19 };
20
21 patches = [
22 # https://github.com/XKNX/knx-frontend/pull/96
23 (fetchpatch {
24 name = "relax-setuptools-dependency.patch";
25 url = "https://github.com/XKNX/knx-frontend/commit/72ac6dc42eeeb488992b0709ee58ea4a79287817.patch";
26 hash = "sha256-EpfgEq4pIx7ahqJZalzo30ruj8NlZYHcKHxFXCGL98w=";
27 })
28 ];
29
30 nativeBuildInputs = [
31 setuptools
32 wheel
33 ];
34
35 pythonImportsCheck = [
36 "knx_frontend"
37 ];
38
39 # no tests
40 doCheck = false;
41
42 meta = with lib; {
43 changelog = "https://github.com/XKNX/knx-frontend/releases/tag/${version}";
44 description = "Home Assistant Panel for managing the KNX integration";
45 homepage = "https://github.com/XKNX/knx-frontend";
46 license = licenses.mit;
47 maintainers = with maintainers; [ hexa ];
48 };
49}