git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #75876 from Scriptkiddi/py3_snitun

pythonPackages.haas-nabucasa: init at 0.29

commit45e69f1872246053ec93d4f210fc9ee071ff610c authorMario Rodas <marsam@users.noreply.github.com> dateThu 26 Dec 2019, 09:34 (7 years ago) parent9842c4b7b4d5a0
3 files changed+60
pkgs/development/python-modules/hass-nabucasa/default.nix+28 pkgs/development/python-modules/snitun/default.nix+28 pkgs/top-level/python-packages.nix+4
pkgs/development/python-modules/hass-nabucasa/default.nixnew file+28
@@ -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+}
pkgs/development/python-modules/snitun/default.nixnew file+28
@@ -0,0 +1,28 @@
1+{ lib, buildPythonPackage, python, fetchFromGitHub, attrs, cryptography, async-timeout, pytest-aiohttp, pytest }:
2+
3+buildPythonPackage rec {
4+ pname = "snitun";
5+ version = "0.20";
6+
7+ src = fetchFromGitHub {
8+ owner = "NabuCasa";
9+ repo = pname;
10+ rev = version;
11+ sha256 = "1nscfwycclfbll709w1q46w6rl0r5c3b85rsc7zwc3ixd1k8aajp";
12+ };
13+
14+ propagatedBuildInputs = [ attrs cryptography async-timeout ];
15+
16+ checkInputs = [ pytest pytest-aiohttp ];
17+
18+ checkPhase = ''
19+ pytest tests/
20+ '';
21+
22+ meta = with lib; {
23+ homepage = "https://github.com/nabucasa/snitun";
24+ description = "SNI proxy with TCP multiplexer";
25+ license = licenses.gpl3;
26+ maintainers = with maintainers; [ Scriptkiddi ];
27+ };
28+}
pkgs/top-level/python-packages.nix+4
@@ -2598,6 +2598,8 @@ in {
25982598 then callPackage ../development/python-modules/gurobipy/linux.nix {}
25992599 else throw "gurobipy not yet supported on ${stdenv.hostPlatform.system}";
26002600
2601+ hass-nabucasa = callPackage ../development/python-modules/hass-nabucasa { };
2602+
26012603 hbmqtt = callPackage ../development/python-modules/hbmqtt { };
26022604
26032605 hiro = callPackage ../development/python-modules/hiro {};
@@ -5188,6 +5190,8 @@ in {
51885190
51895191 snowballstemmer = callPackage ../development/python-modules/snowballstemmer { };
51905192
5193+ snitun = callPackage ../development/python-modules/snitun { };
5194+
51915195 snscrape = callPackage ../development/python-modules/snscrape { };
51925196
51935197 snug = callPackage ../development/python-modules/snug { };