2020-03-18 18:03:58 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch
|
|
|
|
, acme, aiohttp, snitun, attrs, pycognito, warrant
|
2020-06-19 11:52:29 +02:00
|
|
|
, pytest-aiohttp, asynctest, atomicwrites, pytest, pythonOlder }:
|
2019-12-21 11:27:45 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hass-nabucasa";
|
2020-10-28 19:22:32 +01:00
|
|
|
version = "0.37.1";
|
2019-12-21 11:27:45 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nabucasa";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-10-28 19:22:32 +01:00
|
|
|
sha256 = "/GFNrLi1I69gUDIwnHa2q/pxkiRl9PKxpKtb56JrmuA=";
|
2019-12-21 11:27:45 +01:00
|
|
|
};
|
|
|
|
|
2019-12-29 19:37:08 +01:00
|
|
|
postPatch = ''
|
2020-06-19 11:52:29 +02:00
|
|
|
sed -i 's/"acme.*"/"acme"/' setup.py
|
2020-08-08 23:31:38 +02:00
|
|
|
sed -i 's/"cryptography.*"/"cryptography"/' setup.py
|
2019-12-29 19:37:08 +01:00
|
|
|
'';
|
|
|
|
|
2020-06-19 11:52:29 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
acme aiohttp atomicwrites snitun attrs warrant pycognito
|
|
|
|
];
|
2019-12-21 11:27:45 +01:00
|
|
|
|
2020-03-18 18:03:58 +01:00
|
|
|
checkInputs = [ pytest pytest-aiohttp asynctest ];
|
2019-12-21 11:27:45 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests/
|
2020-03-18 18:03:58 +01:00
|
|
|
'';
|
2019-12-21 11:27:45 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/NabuCasa/hass-nabucasa";
|
|
|
|
description = "Home Assistant cloud integration by Nabu Casa, inc.";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ Scriptkiddi ];
|
|
|
|
};
|
|
|
|
}
|