Merge pull request #128508 from dotlambda/starline-init

home-assistant: support starline component
This commit is contained in:
Fabian Affolter 2021-06-28 23:51:47 +02:00 committed by GitHub
commit 91f13012c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 40 additions and 1 deletions

View 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 ];
};
}

View file

@ -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 ];

View file

@ -675,6 +675,7 @@ in with py.pkgs; buildPythonApplication rec {
"squeezebox"
"srp_energy"
"ssdp"
"starline"
"startca"
"statistics"
"statsd"

View file

@ -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 { };