1{ lib
2, buildPythonPackage
3, fetchpatch
4, fetchPypi
5, pythonOlder
6, setuptools
7, wheel
8}:
9
10buildPythonPackage rec {
11 pname = "insteon-frontend-home-assistant";
12 version = "0.3.5-1";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-R+P4pgKbLvf0mwpSDoujCvlJe/yS+nvSJ7ewLVOOg/0=";
20 };
21
22 patches = [
23 # https://github.com/pyinsteon/insteon-panel/pull/33
24 (fetchpatch {
25 name = "unpin-setuptools.patch";
26 url = "https://github.com/pyinsteon/insteon-panel/commit/2297eb05668907edd03633f244e5876990e340c7.patch";
27 hash = "sha256-kTu1+IwDrcdqelyK/vfhxw8MQBis5I1jag7YTytKQhs=";
28 })
29 ];
30
31 nativeBuildInputs = [
32 setuptools
33 wheel
34 ];
35
36 # upstream has no tests
37 doCheck = false;
38
39 pythonImportsCheck = [
40 "insteon_frontend"
41 ];
42
43 meta = with lib; {
44 changelog = "https://github.com/pyinsteon/insteon-panel/releases/tag/${version}";
45 description = "The Insteon frontend for Home Assistant";
46 homepage = "https://github.com/pyinsteon/insteon-panel";
47 license = licenses.mit;
48 maintainers = with maintainers; [ dotlambda ];
49 };
50}