Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / knx-frontend / default.nix
blob47b9fa4d835791348986cc6a3b2a1ce6890bc09f
1 { lib
2 , buildPythonPackage
3 , fetchpatch
4 , fetchPypi
5 , setuptools
6 , wheel
7 }:
9 buildPythonPackage rec {
10   pname = "knx-frontend";
11   version = "2023.6.23.191712";
12   format = "pyproject";
14   # TODO: source build, uses yarn.lock
15   src = fetchPypi {
16     pname = "knx_frontend";
17     inherit version;
18     hash = "sha256-MeurZ6731qjeBK6HTwXYLVs6+nXF9Hf1p8/NNwxmae4=";
19   };
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   ];
30   nativeBuildInputs = [
31     setuptools
32     wheel
33   ];
35   pythonImportsCheck = [
36     "knx_frontend"
37   ];
39   # no tests
40   doCheck = false;
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   };