Merge pull request #128511 from dotlambda/srpenergy-init

home-assistant: support srp_energy component
This commit is contained in:
Fabian Affolter 2021-06-28 22:48:29 +02:00 committed by GitHub
commit 860b56be91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 44 additions and 1 deletions

View File

@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, python-dateutil
, requests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "srpenergy";
version = "1.3.2";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "lamoreauxlab";
repo = "srpenergy-api-client-python";
rev = version;
sha256 = "03kldjk90mrnzf2hpd7xky0lpph853mjxc34kfa2m5mbpbpkxz9c";
};
propagatedBuildInputs = [
python-dateutil
requests
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "srpenergy.client" ];
meta = with lib; {
description = "Unofficial Python module for interacting with Srp Energy data";
homepage = "https://github.com/lamoreauxlab/srpenergy-api-client-python";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}

View File

@ -799,7 +799,7 @@
"spotify" = ps: with ps; [ aiohttp-cors spotipy ];
"sql" = ps: with ps; [ sqlalchemy ];
"squeezebox" = ps: with ps; [ pysqueezebox ];
"srp_energy" = ps: with ps; [ ]; # missing inputs: srpenergy
"srp_energy" = ps: with ps; [ srpenergy ];
"ssdp" = ps: with ps; [ aiohttp-cors async-upnp-client defusedxml ifaddr netdisco zeroconf ];
"starline" = ps: with ps; [ ]; # missing inputs: starline
"starlingbank" = ps: with ps; [ ]; # missing inputs: starlingbank

View File

@ -673,6 +673,7 @@ in with py.pkgs; buildPythonApplication rec {
"spotify"
"sql"
"squeezebox"
"srp_energy"
"ssdp"
"startca"
"statistics"

View File

@ -8218,6 +8218,8 @@ in {
srp = callPackage ../development/python-modules/srp { };
srpenergy = callPackage ../development/python-modules/srpenergy { };
srptools = callPackage ../development/python-modules/srptools { };
srsly = callPackage ../development/python-modules/srsly { };