ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / hass-nabucasa / default.nix
bloba1c07368c0de5d656ad567ad43e49463e2c1cd35
1 { lib
2 , acme
3 , aiohttp
4 , asynctest
5 , atomicwrites-homeassistant
6 , attrs
7 , buildPythonPackage
8 , fetchFromGitHub
9 , pycognito
10 , pytest-aiohttp
11 , pytestCheckHook
12 , snitun
13 , warrant
16 buildPythonPackage rec {
17   pname = "hass-nabucasa";
18   version = "0.56.0";
20   src = fetchFromGitHub {
21     owner = "nabucasa";
22     repo = pname;
23     rev = version;
24     sha256 = "sha256-IgDOugHr4fCD9o3QQY5w/ibjak/d56R31KgQAbjUkkI=";
25   };
27   postPatch = ''
28     substituteInPlace setup.py \
29       --replace "acme==" "acme>=" \
30       --replace "cryptography>=2.8,<38.0" "cryptography" \
31       --replace "pycognito==" "pycognito>=" \
32       --replace "snitun==" "snitun>=" \
33   '';
35   propagatedBuildInputs = [
36     acme
37     aiohttp
38     atomicwrites-homeassistant
39     attrs
40     pycognito
41     snitun
42     warrant
43   ];
45   doCheck = lib.versionAtLeast pytest-aiohttp.version "1.0.0";
47   checkInputs = [
48     asynctest
49     pytest-aiohttp
50     pytestCheckHook
51   ];
53   pythonImportsCheck = [ "hass_nabucasa" ];
55   meta = with lib; {
56     homepage = "https://github.com/NabuCasa/hass-nabucasa";
57     description = "Python module for the Home Assistant cloud integration";
58     license = licenses.gpl3Only;
59     maintainers = with maintainers; [ Scriptkiddi ];
60   };