Merge pull request #123175 from fabaff/py-canary

python3Packages.py-canary: init 0.5.1
This commit is contained in:
Martin Weinelt 2021-05-17 17:42:58 +02:00 committed by GitHub
commit a058bbdec8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 45 additions and 1 deletions

View File

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, pytestCheckHook
, pythonOlder
, requests
, requests-mock
}:
buildPythonPackage rec {
pname = "py-canary";
version = "0.5.1";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "snjoetw";
repo = pname;
rev = version;
sha256 = "0j743cc0wv7im3anx1vvdm79zyvw67swhc3zwwc1r8626dgnmxjr";
};
propagatedBuildInputs = [
requests
];
checkInputs = [
mock
pytestCheckHook
requests-mock
];
pythonImportsCheck = [ "canary" ];
meta = with lib; {
description = "Python package for Canary Security Camera";
homepage = "https://github.com/snjoetw/py-canary";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -109,7 +109,7 @@
"caldav" = ps: with ps; [ caldav ];
"calendar" = ps: with ps; [ aiohttp-cors ];
"camera" = ps: with ps; [ aiohttp-cors ];
"canary" = ps: with ps; [ ha-ffmpeg ]; # missing inputs: py-canary
"canary" = ps: with ps; [ ha-ffmpeg py-canary ];
"cast" = ps: with ps; [ aiohttp-cors hass-nabucasa mutagen plexapi plexauth plexwebsocket PyChromecast pyroute2 zeroconf ];
"cert_expiry" = ps: with ps; [ ];
"channels" = ps: with ps; [ pychannels ];

View File

@ -214,6 +214,7 @@ in with py.pkgs; buildPythonApplication rec {
"caldav"
"calendar"
"camera"
"canary"
"cast"
"climacell"
"climate"

View File

@ -5482,6 +5482,8 @@ in {
pycparser = callPackage ../development/python-modules/pycparser { };
py-canary = callPackage ../development/python-modules/py-canary { };
py-cid = callPackage ../development/python-modules/py-cid { };
py-cpuinfo = callPackage ../development/python-modules/py-cpuinfo { };