Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / insteon-frontend-home-assistant / default.nix
blob2a6e9f0556a9cdb75f12c91059b42e021daa2623
1 { lib
2 , buildPythonPackage
3 , fetchpatch
4 , fetchPypi
5 , pythonOlder
6 , setuptools
7 , wheel
8 }:
10 buildPythonPackage rec {
11   pname = "insteon-frontend-home-assistant";
12   version = "0.3.5-1";
13   format = "pyproject";
15   disabled = pythonOlder "3.7";
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-R+P4pgKbLvf0mwpSDoujCvlJe/yS+nvSJ7ewLVOOg/0=";
20   };
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   ];
31   nativeBuildInputs = [
32     setuptools
33     wheel
34   ];
36   # upstream has no tests
37   doCheck = false;
39   pythonImportsCheck = [
40     "insteon_frontend"
41   ];
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   };