forked from mirrors/nixpkgs
Merge pull request #173834 from dotlambda/logi-circle-init
home-assistant: support logi_circle component
This commit is contained in:
commit
dfd01d8465
46
pkgs/development/python-modules/logi-circle/default.nix
Normal file
46
pkgs/development/python-modules/logi-circle/default.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, aiohttp
|
||||
, python-slugify
|
||||
, pytz
|
||||
, aresponses
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "logi-circle";
|
||||
version = "0.2.3";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "evanjd";
|
||||
repo = "python-logi-circle";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-Q+uoaimJjn6MiO3jXGYyZ6cS0tqI06Azkq1QbNq2FN8=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
python-slugify
|
||||
pytz
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
aresponses
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "logi_circle" ];
|
||||
|
||||
meta = {
|
||||
description = "A Python library to communicate with Logi Circle cameras";
|
||||
homepage = "https://github.com/evanjd/python-logi-circle";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
|
@ -1449,7 +1449,8 @@
|
|||
"logi_circle" = ps: with ps; [
|
||||
aiohttp-cors
|
||||
ha-ffmpeg
|
||||
]; # missing inputs: logi_circle
|
||||
logi-circle
|
||||
];
|
||||
"london_air" = ps: with ps; [
|
||||
];
|
||||
"london_underground" = ps: with ps; [
|
||||
|
@ -3453,6 +3454,7 @@
|
|||
"logbook"
|
||||
"logentries"
|
||||
"logger"
|
||||
"logi_circle"
|
||||
"london_air"
|
||||
"lookin"
|
||||
"lovelace"
|
||||
|
|
|
@ -4982,6 +4982,8 @@ in {
|
|||
|
||||
logfury = callPackage ../development/python-modules/logfury { };
|
||||
|
||||
logi-circle = callPackage ../development/python-modules/logi-circle { };
|
||||
|
||||
logical-unification = callPackage ../development/python-modules/logical-unification { };
|
||||
|
||||
logilab_astng = callPackage ../development/python-modules/logilab_astng { };
|
||||
|
|
Loading…
Reference in a new issue