Merge pull request #113685 from fabaff/pychannels
commitb0dcc5bb9743567ffcc33be5eb8c459da7b9f108
authorSandro <sandro.jaeckel@gmail.com>
dateSat 20 Feb 2021, 04:20 (6 years ago)
parent4911c23bce61c2
pkgs/development/python-modules/pychannels/default.nixnew file+30
@@ -0,0 +1,30 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, requests
5+}:
6+
7+buildPythonPackage rec {
8+ pname = "pychannels";
9+ version = "1.2.2";
10+
11+ src = fetchFromGitHub {
12+ owner = "fancybits";
13+ repo = pname;
14+ rev = version;
15+ sha256 = "0dqc0vhf6c5r3g7nfbpa668x6z2zxrznk6h907s6sxkq4sbqnhqf";
16+ };
17+
18+ propagatedBuildInputs = [ requests ];
19+
20+ # Project has not published tests yet
21+ doCheck = false;
22+ pythonImportsCheck = [ "pychannels" ];
23+
24+ meta = with lib; {
25+ description = "Python library for interacting with the Channels app";
26+ homepage = "https://github.com/fancybits/pychannels";
27+ license = with licenses; [ mit ];
28+ maintainers = with maintainers; [ fab ];
29+ };
30+}
pkgs/servers/home-assistant/component-packages.nix+1−1
@@ -110,7 +110,7 @@
110110 "canary" = ps: with ps; [ ha-ffmpeg ]; # missing inputs: py-canary
111111 "cast" = ps: with ps; [ aiohttp-cors hass-nabucasa mutagen plexapi plexauth plexwebsocket PyChromecast zeroconf ];
112112 "cert_expiry" = ps: with ps; [ ];
113− "channels" = ps: with ps; [ ]; # missing inputs: pychannels
113+ "channels" = ps: with ps; [ pychannels ];
114114 "circuit" = ps: with ps; [ ]; # missing inputs: circuit-webhook
115115 "cisco_ios" = ps: with ps; [ pexpect ];
116116 "cisco_mobility_express" = ps: with ps; [ ciscomobilityexpress ];
pkgs/top-level/python-packages.nix+2
@@ -5313,6 +5313,8 @@ in {
53135313
53145314 pycfdns = callPackage ../development/python-modules/pycfdns { };
53155315
5316+ pychannels = callPackage ../development/python-modules/pychannels { };
5317+
53165318 pychart = callPackage ../development/python-modules/pychart { };
53175319
53185320 pychef = callPackage ../development/python-modules/pychef { };