mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-03-15 16:46:21 +00:00
Merge pull request #123175 from fabaff/py-canary
python3Packages.py-canary: init 0.5.1
This commit is contained in:
commit
a058bbdec8
41
pkgs/development/python-modules/py-canary/default.nix
Normal file
41
pkgs/development/python-modules/py-canary/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 ];
|
||||
|
|
|
@ -214,6 +214,7 @@ in with py.pkgs; buildPythonApplication rec {
|
|||
"caldav"
|
||||
"calendar"
|
||||
"camera"
|
||||
"canary"
|
||||
"cast"
|
||||
"climacell"
|
||||
"climate"
|
||||
|
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue