git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #38653 from peterhoeg/hass_cloud

home-assistant: make hass cloud integration work

commitb70ad2ac314229c3cdbde6f2a243f536b81b7433 authorRobert Schütz <rschuetz17@gmail.com> dateMon 16 Apr 2018, 08:12 (9 years ago) parent231e8e2f6d9eed
4 files changed+65−1
pkgs/development/python-modules/envs/default.nix+24 pkgs/development/python-modules/warrant/default.nix+36 pkgs/servers/home-assistant/component-packages.nix+1−1 pkgs/top-level/python-packages.nix+4
pkgs/development/python-modules/envs/default.nixnew file+24
@@ -0,0 +1,24 @@
1+{ lib, buildPythonPackage, fetchFromGitHub
2+, click, jinja2, terminaltables }:
3+
4+buildPythonPackage rec {
5+ pname = "envs";
6+ version = "1.2.4";
7+
8+ # move to fetchPyPi when https://github.com/capless/envs/issues/8 is fixed
9+ src = fetchFromGitHub {
10+ owner = "capless";
11+ repo = "envs";
12+ rev = "e1f6cbad7f20316fc44324d2c50826d57c2817a8";
13+ sha256 = "0p88a79amj0jxll3ssq1dzg78y7zwgc8yqyr7cf53nv2i7kmpakv";
14+ };
15+
16+ checkInputs = [ click jinja2 terminaltables ];
17+
18+ meta = with lib; {
19+ description = "Easy access to environment variables from Python";
20+ homepage = https://github.com/capless/envs;
21+ license = licenses.asl20;
22+ maintainers = with maintainers; [ peterhoeg ];
23+ };
24+}
pkgs/development/python-modules/warrant/default.nixnew file+36
@@ -0,0 +1,36 @@
1+{ lib, buildPythonPackage, fetchFromGitHub, fetchPypi
2+, mock
3+, boto3, envs, python-jose, requests }:
4+
5+buildPythonPackage rec {
6+ pname = "warrant";
7+ version = "0.6.1";
8+
9+ # move to fetchPyPi when https://github.com/capless/warrant/issues/97 is fixed
10+ src = fetchFromGitHub {
11+ owner = "capless";
12+ repo = "warrant";
13+ rev = "ff2e4793d8479e770f2461ef7cbc0c15ee784395";
14+ sha256 = "0gw3crg64p1zx3k5js0wh0x5bldgs7viy4g8hld9xbka8q0374hi";
15+ };
16+
17+ # this needs to go when 0.6.2 or later is released
18+ postPatch = ''
19+ substituteInPlace requirements.txt \
20+ --replace "python-jose-cryptodome>=1.3.2" "python-jose>=2.0.0"
21+ '';
22+
23+ checkInputs = [ mock ];
24+
25+ propagatedBuildInputs = [ boto3 envs python-jose requests ];
26+
27+ # all the checks are failing
28+ doCheck = false;
29+
30+ meta = with lib; {
31+ description = "Python library for using AWS Cognito with support for SRP";
32+ homepage = https://github.com/capless/warrant;
33+ license = lib.licenses.asl20;
34+ maintainers = with lib.maintainers; [ peterhoeg ];
35+ };
36+}
pkgs/servers/home-assistant/component-packages.nix+1−1
@@ -55,7 +55,7 @@
5555 "climate.sensibo" = ps: with ps; [ ];
5656 "climate.touchline" = ps: with ps; [ ];
5757 "climate.venstar" = ps: with ps; [ ];
58− "cloud" = ps: with ps; [ ];
58+ "cloud" = ps: with ps; [ warrant ];
5959 "coinbase" = ps: with ps; [ ];
6060 "comfoconnect" = ps: with ps; [ ];
6161 "config.config_entries" = ps: with ps; [ ];
pkgs/top-level/python-packages.nix+4
@@ -1646,6 +1646,8 @@ in {
16461646
16471647 curtsies = callPackage ../development/python-modules/curtsies { };
16481648
1649+ envs = callPackage ../development/python-modules/envs { };
1650+
16491651 jsonrpc-async = callPackage ../development/python-modules/jsonrpc-async { };
16501652
16511653 jsonrpc-base = callPackage ../development/python-modules/jsonrpc-base { };
@@ -18273,6 +18275,8 @@ EOF
1827318275
1827418276 sseclient = callPackage ../development/python-modules/sseclient { };
1827518277
18278+ warrant = callPackage ../development/python-modules/warrant { };
18279+
1827618280 textacy = callPackage ../development/python-modules/textacy { };
1827718281
1827818282 pyemd = callPackage ../development/python-modules/pyemd { };