blob: 5abab393de81753567ebfdba04b725161cb5e802 (
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,
pytestCheckHook,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "pyhik";
version = "0.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "mezz64";
repo = "pyHik";
tag = version;
hash = "sha256-ayjpIsUX/PVNOTuOm/3pwLfnypEpMWQAJAf1JzFocu4=";
};
build-system = [
setuptools
];
dependencies = [
requests
];
# Tests are disabled due to fragile XML namespace assertions
doCheck = false;
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pyhik"
];
meta = {
description = "Python API to interact with a Hikvision camera event stream and toggle motion detection";
homepage = "https://github.com/mezz64/pyHik";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.jamiemagee ];
};
}
|