Merge pull request #128508 from dotlambda/starline-init
home-assistant: support starline component
This commit is contained in:
commit
91f13012c5
36
pkgs/development/python-modules/starline/default.nix
Normal file
36
pkgs/development/python-modules/starline/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
, aiohttp
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "starline";
|
||||
version = "0.1.5";
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1753f5fcd2a6976aed775afb03f8392159f040c673917cc0c634510d95c13cb9";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
requests
|
||||
];
|
||||
|
||||
# no tests implemented
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "starline" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Unofficial python library for StarLine API";
|
||||
homepage = "https://github.com/Anonym-tsk/starline";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
|
@ -801,7 +801,7 @@
|
|||
"squeezebox" = ps: with ps; [ pysqueezebox ];
|
||||
"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
|
||||
"starline" = ps: with ps; [ starline ];
|
||||
"starlingbank" = ps: with ps; [ ]; # missing inputs: starlingbank
|
||||
"startca" = ps: with ps; [ xmltodict ];
|
||||
"statistics" = ps: with ps; [ sqlalchemy ];
|
||||
|
|
|
@ -675,6 +675,7 @@ in with py.pkgs; buildPythonApplication rec {
|
|||
"squeezebox"
|
||||
"srp_energy"
|
||||
"ssdp"
|
||||
"starline"
|
||||
"startca"
|
||||
"statistics"
|
||||
"statsd"
|
||||
|
|
|
@ -8250,6 +8250,8 @@ in {
|
|||
|
||||
starkbank-ecdsa = callPackage ../development/python-modules/starkbank-ecdsa { };
|
||||
|
||||
starline = callPackage ../development/python-modules/starline { };
|
||||
|
||||
staticjinja = callPackage ../development/python-modules/staticjinja { };
|
||||
|
||||
statistics = callPackage ../development/python-modules/statistics { };
|
||||
|
|
Loading…
Reference in New Issue
Block a user