mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 11:22:58 +00:00
Merge pull request #128511 from dotlambda/srpenergy-init
home-assistant: support srp_energy component
This commit is contained in:
commit
860b56be91
40
pkgs/development/python-modules/srpenergy/default.nix
Normal file
40
pkgs/development/python-modules/srpenergy/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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
|
||||
|
@ -673,6 +673,7 @@ in with py.pkgs; buildPythonApplication rec {
|
||||
"spotify"
|
||||
"sql"
|
||||
"squeezebox"
|
||||
"srp_energy"
|
||||
"ssdp"
|
||||
"startca"
|
||||
"statistics"
|
||||
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user