git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #120272 from fabaff/pynx584
79cb2cbMartin Weinelt
pkgs/development/python-modules/pynx584/default.nixnew file+48
@@ -0,0 +1,48 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, flask
5+, mock
6+, prettytable
7+, pyserial
8+, pytestCheckHook
9+, pythonOlder
10+, requests
11+, stevedore
12+}:
13+
14+buildPythonPackage rec {
15+ pname = "pynx584";
16+ version = "0.6";
17+ disabled = pythonOlder "3.6";
18+
19+
20+ src = fetchFromGitHub {
21+ owner = "kk7ds";
22+ repo = pname;
23+ rev = version;
24+ sha256 = "0if1jq8qiqp4w4zhf2xzzcb8y70hr5pxqzh96i008p6izjha89y6";
25+ };
26+
27+ propagatedBuildInputs = [
28+ flask
29+ prettytable
30+ pyserial
31+ requests
32+ stevedore
33+ ];
34+
35+ checkInputs = [
36+ mock
37+ pytestCheckHook
38+ ];
39+
40+ pythonImportsCheck = [ "nx584" ];
41+
42+ meta = with lib; {
43+ description = "Python package for communicating to NX584/NX8E interfaces";
44+ homepage = "https://github.com/kk7ds/pynx584";
45+ license = with licenses; [ gpl3Only ];
46+ maintainers = with maintainers; [ fab ];
47+ };
48+}
pkgs/servers/home-assistant/component-packages.nix+1−1
@@ -573,7 +573,7 @@
573 "number" = ps: with ps; [ ];
573 "number" = ps: with ps; [ ];
574 "nut" = ps: with ps; [ ]; # missing inputs: pynut2
574 "nut" = ps: with ps; [ ]; # missing inputs: pynut2
575 "nws" = ps: with ps; [ pynws ];
575 "nws" = ps: with ps; [ pynws ];
576− "nx584" = ps: with ps; [ ]; # missing inputs: pynx584
576+ "nx584" = ps: with ps; [ pynx584 ];
577 "nzbget" = ps: with ps; [ ]; # missing inputs: pynzbgetapi
577 "nzbget" = ps: with ps; [ ]; # missing inputs: pynzbgetapi
578 "oasa_telematics" = ps: with ps; [ ]; # missing inputs: oasatelematics
578 "oasa_telematics" = ps: with ps; [ ]; # missing inputs: oasatelematics
579 "obihai" = ps: with ps; [ ]; # missing inputs: pyobihai
579 "obihai" = ps: with ps; [ ]; # missing inputs: pyobihai
pkgs/servers/home-assistant/default.nix+1
@@ -332,6 +332,7 @@ in with py.pkgs; buildPythonApplication rec {
332 "notify"
332 "notify"
333 "notion"
333 "notion"
334 "number"
334 "number"
335+ "nx584"
335 "omnilogic"
336 "omnilogic"
336 "ondilo_ico"
337 "ondilo_ico"
337 "openerz"
338 "openerz"
pkgs/top-level/python-packages.nix+2
@@ -4964,6 +4964,8 @@ in {
4964
4964
4965 pynws = callPackage ../development/python-modules/pynws { };
4965 pynws = callPackage ../development/python-modules/pynws { };
4966
4966
4967+ pynx584 = callPackage ../development/python-modules/pynx584 { };
4968+
4967 pysbd = callPackage ../development/python-modules/pysbd { };
4969 pysbd = callPackage ../development/python-modules/pysbd { };
4968
4970
4969 pyshark = callPackage ../development/python-modules/pyshark { };
4971 pyshark = callPackage ../development/python-modules/pyshark { };