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 ];
|
"squeezebox" = ps: with ps; [ pysqueezebox ];
|
||||||
"srp_energy" = ps: with ps; [ srpenergy ];
|
"srp_energy" = ps: with ps; [ srpenergy ];
|
||||||
"ssdp" = ps: with ps; [ aiohttp-cors async-upnp-client defusedxml ifaddr netdisco zeroconf ];
|
"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
|
"starlingbank" = ps: with ps; [ ]; # missing inputs: starlingbank
|
||||||
"startca" = ps: with ps; [ xmltodict ];
|
"startca" = ps: with ps; [ xmltodict ];
|
||||||
"statistics" = ps: with ps; [ sqlalchemy ];
|
"statistics" = ps: with ps; [ sqlalchemy ];
|
||||||
|
|
|
@ -675,6 +675,7 @@ in with py.pkgs; buildPythonApplication rec {
|
||||||
"squeezebox"
|
"squeezebox"
|
||||||
"srp_energy"
|
"srp_energy"
|
||||||
"ssdp"
|
"ssdp"
|
||||||
|
"starline"
|
||||||
"startca"
|
"startca"
|
||||||
"statistics"
|
"statistics"
|
||||||
"statsd"
|
"statsd"
|
||||||
|
|
|
@ -8250,6 +8250,8 @@ in {
|
||||||
|
|
||||||
starkbank-ecdsa = callPackage ../development/python-modules/starkbank-ecdsa { };
|
starkbank-ecdsa = callPackage ../development/python-modules/starkbank-ecdsa { };
|
||||||
|
|
||||||
|
starline = callPackage ../development/python-modules/starline { };
|
||||||
|
|
||||||
staticjinja = callPackage ../development/python-modules/staticjinja { };
|
staticjinja = callPackage ../development/python-modules/staticjinja { };
|
||||||
|
|
||||||
statistics = callPackage ../development/python-modules/statistics { };
|
statistics = callPackage ../development/python-modules/statistics { };
|
||||||
|
|
Loading…
Reference in a new issue