blob: c3f7e2349b83a4845eb554ef95e3f6372a29cb35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
mock,
pytestCheckHook,
requests,
requests-mock,
setuptools,
}:
buildPythonPackage rec {
pname = "py-canary";
version = "0.5.4";
pyproject = true;
src = fetchFromGitHub {
owner = "snjoetw";
repo = "py-canary";
tag = version;
hash = "sha256-zylWkssU85eSfR+Di7vQGTr6hOQkqXCObv/PCDHoKHA=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ requests ];
nativeCheckInputs = [
mock
pytestCheckHook
requests-mock
];
pythonImportsCheck = [ "canary" ];
disabledTests = [
# Test requires network access
"test_location_with_motion_entry"
];
meta = {
description = "Python package for Canary Security Camera";
homepage = "https://github.com/snjoetw/py-canary";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|