python3Packages.py-canary: init 0.5.1
This commit is contained in:
parent
06d8a6f99d
commit
11ac60daa8
2 changed files with 43 additions and 0 deletions
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 ];
|
||||
};
|
||||
}
|
|
@ -5468,6 +5468,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