nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 ciso8601,
6 fetchFromGitHub,
7 setuptools,
8 yarl,
9 zeep,
10}:
11
12buildPythonPackage rec {
13 pname = "onvif-zeep-async";
14 version = "4.0.4";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "openvideolibs";
19 repo = "python-onvif-zeep-async";
20 tag = "v${version}";
21 hash = "sha256-IZ48CB4+C+XS/Qt51hohurdQoJ1uANus/PodtZ9ZpCY=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [
27 aiohttp
28 ciso8601
29 yarl
30 zeep
31 ]
32 ++ zeep.optional-dependencies.async;
33
34 pythonImportsCheck = [ "onvif" ];
35
36 # Tests are not shipped
37 doCheck = false;
38
39 meta = {
40 description = "ONVIF Client Implementation in Python";
41 homepage = "https://github.com/hunterjm/python-onvif-zeep-async";
42 changelog = "https://github.com/openvideolibs/python-onvif-zeep-async/releases/tag/${src.tag}";
43 license = lib.licenses.mit;
44 maintainers = with lib.maintainers; [ fab ];
45 mainProgram = "onvif-cli";
46 };
47}