Merge pull request #117534 from fabaff/solaredge
This commit is contained in:
commit
d9a1de3d60
|
@ -0,0 +1,36 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, python-dateutil
|
||||||
|
, pythonOlder
|
||||||
|
, pytz
|
||||||
|
, requests
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "solaredge";
|
||||||
|
version = "0.0.4";
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "0q4gib0l3qnlpncg84ki027vr1apjlr47vd6845rpk7zkm8lqgfz";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
python-dateutil
|
||||||
|
pytz
|
||||||
|
requests
|
||||||
|
];
|
||||||
|
|
||||||
|
# Project has no tests
|
||||||
|
doCheck = false;
|
||||||
|
pythonImportsCheck = [ "solaredge" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python wrapper for Solaredge monitoring service";
|
||||||
|
homepage = "https://github.com/bertouttier/solaredge";
|
||||||
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -766,7 +766,7 @@
|
||||||
"snmp" = ps: with ps; [ pysnmp ];
|
"snmp" = ps: with ps; [ pysnmp ];
|
||||||
"sochain" = ps: with ps; [ ]; # missing inputs: python-sochain-api
|
"sochain" = ps: with ps; [ ]; # missing inputs: python-sochain-api
|
||||||
"socialblade" = ps: with ps; [ ]; # missing inputs: socialbladeclient
|
"socialblade" = ps: with ps; [ ]; # missing inputs: socialbladeclient
|
||||||
"solaredge" = ps: with ps; [ stringcase ]; # missing inputs: solaredge
|
"solaredge" = ps: with ps; [ solaredge stringcase ];
|
||||||
"solaredge_local" = ps: with ps; [ ]; # missing inputs: solaredge-local
|
"solaredge_local" = ps: with ps; [ ]; # missing inputs: solaredge-local
|
||||||
"solarlog" = ps: with ps; [ ]; # missing inputs: sunwatcher
|
"solarlog" = ps: with ps; [ ]; # missing inputs: sunwatcher
|
||||||
"solax" = ps: with ps; [ solax ];
|
"solax" = ps: with ps; [ solax ];
|
||||||
|
|
|
@ -298,6 +298,7 @@ in with py.pkgs; buildPythonApplication rec {
|
||||||
"sensor"
|
"sensor"
|
||||||
"smarttub"
|
"smarttub"
|
||||||
"smtp"
|
"smtp"
|
||||||
|
"solaredge"
|
||||||
"sql"
|
"sql"
|
||||||
"ssdp"
|
"ssdp"
|
||||||
"stream"
|
"stream"
|
||||||
|
|
|
@ -7767,6 +7767,8 @@ in {
|
||||||
|
|
||||||
softlayer = callPackage ../development/python-modules/softlayer { };
|
softlayer = callPackage ../development/python-modules/softlayer { };
|
||||||
|
|
||||||
|
solaredge = callPackage ../development/python-modules/solaredge { };
|
||||||
|
|
||||||
solax = callPackage ../development/python-modules/solax { };
|
solax = callPackage ../development/python-modules/solax { };
|
||||||
|
|
||||||
solo-python = disabledIf (!pythonAtLeast "3.6") (callPackage ../development/python-modules/solo-python { });
|
solo-python = disabledIf (!pythonAtLeast "3.6") (callPackage ../development/python-modules/solo-python { });
|
||||||
|
|
Loading…
Reference in New Issue