blob: ecfb6a8d072af13a432bf5bf82f61616af620eb0 (
plain) (
blame)
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
48
49
50
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
mock,
pytestCheckHook,
pythonOlder,
requests,
requests-mock,
setuptools,
}:
buildPythonPackage rec {
pname = "py-canary";
version = "0.5.4";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "snjoetw";
repo = pname;
rev = "refs/tags/${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 = with lib; {
description = "Python package for Canary Security Camera";
homepage = "https://github.com/snjoetw/py-canary";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
|