1{ lib
2, acme
3, aiohttp
4, asynctest
5, atomicwrites
6, attrs
7, buildPythonPackage
8, fetchFromGitHub
9, pycognito
10, pytest-aiohttp
11, pytestCheckHook
12, snitun
13, warrant
14}:
15
16buildPythonPackage rec {
17 pname = "hass-nabucasa";
18 version = "0.43.0";
19
20 src = fetchFromGitHub {
21 owner = "nabucasa";
22 repo = pname;
23 rev = version;
24 sha256 = "sha256-mfVSiquZrCtAza4q9Ocle22e4ZMoTgxguevuOlZEUm8=";
25 };
26
27 postPatch = ''
28 sed -i 's/"acme.*"/"acme"/' setup.py
29 '';
30
31 propagatedBuildInputs = [
32 acme
33 aiohttp
34 atomicwrites
35 attrs
36 pycognito
37 snitun
38 warrant
39 ];
40
41 checkInputs = [
42 asynctest
43 pytest-aiohttp
44 pytestCheckHook
45 ];
46
47 pythonImportsCheck = [ "hass_nabucasa" ];
48
49 meta = with lib; {
50 homepage = "https://github.com/NabuCasa/hass-nabucasa";
51 description = "Home Assistant cloud integration by Nabu Casa, inc.";
52 license = licenses.gpl3Only;
53 maintainers = with maintainers; [ Scriptkiddi ];
54 };
55}