@@ -0,0 +1,28 @@
1+{ lib, buildPythonPackage, fetchFromGitHub, acme, aiohttp, snitun, attrs, pytest-aiohttp, warrant, pytest }:
2+
3+buildPythonPackage rec {
4+ pname = "hass-nabucasa";
5+ version = "0.29";
6+
7+ src = fetchFromGitHub {
8+ owner = "nabucasa";
9+ repo = pname;
10+ rev = version;
11+ sha256 = "182nh5i3hlj0kqkbynk69md0ddq83w02l8lz4m03d8xbjixzi1k1";
12+ };
13+
14+ propagatedBuildInputs = [ acme aiohttp snitun attrs warrant ];
15+
16+ checkInputs = [ pytest pytest-aiohttp ];
17+
18+ checkPhase = ''
19+ pytest tests/
20+ '';
21+
22+ meta = with lib; {
23+ homepage = "https://github.com/NabuCasa/hass-nabucasa";
24+ description = "Home Assistant cloud integration by Nabu Casa, inc.";
25+ license = licenses.gpl3;
26+ maintainers = with maintainers; [ Scriptkiddi ];
27+ };
28+}