depot/third_party/nixpkgs/pkgs/development/python-modules/hass-nabucasa/default.nix
Default email a944afd061 Project import generated by Copybara.
GitOrigin-RevId: 2247d824fe07f16325596acc7faa286502faffd1
2020-11-21 20:51:51 +01:00

37 lines
967 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch
, acme, aiohttp, snitun, attrs, pycognito, warrant
, pytest-aiohttp, asynctest, atomicwrites, pytest, pythonOlder }:
buildPythonPackage rec {
pname = "hass-nabucasa";
version = "0.37.2";
src = fetchFromGitHub {
owner = "nabucasa";
repo = pname;
rev = version;
sha256 = "0gv8p9nba7269qhc05ds0i79wz4419qjfhn7k9kcngfj1yngb6dm";
};
postPatch = ''
sed -i 's/"acme.*"/"acme"/' setup.py
sed -i 's/"cryptography.*"/"cryptography"/' setup.py
'';
propagatedBuildInputs = [
acme aiohttp atomicwrites snitun attrs warrant pycognito
];
checkInputs = [ pytest pytest-aiohttp asynctest ];
checkPhase = ''
pytest tests/
'';
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 ];
};
}