1{
2 lib,
3 aiohttp,
4 aiortsp,
5 buildPythonPackage,
6 fetchFromGitHub,
7 orjson,
8 pycryptodomex,
9 pythonOlder,
10 setuptools,
11 typing-extensions,
12}:
13
14buildPythonPackage rec {
15 pname = "reolink-aio";
16 version = "0.16.0";
17 pyproject = true;
18
19 disabled = pythonOlder "3.11";
20
21 src = fetchFromGitHub {
22 owner = "starkillerOG";
23 repo = "reolink_aio";
24 tag = version;
25 hash = "sha256-pxU3QuBH/xV77YLp0JqfYTJPVIbLvRKuaWnH5YU6vsE=";
26 };
27
28 build-system = [ setuptools ];
29
30 dependencies = [
31 aiohttp
32 aiortsp
33 orjson
34 pycryptodomex
35 typing-extensions
36 ];
37
38 pythonImportsCheck = [ "reolink_aio" ];
39
40 # All tests require a network device
41 doCheck = false;
42
43 meta = with lib; {
44 description = "Module to interact with the Reolink IP camera API";
45 homepage = "https://github.com/starkillerOG/reolink_aio";
46 changelog = "https://github.com/starkillerOG/reolink_aio/releases/tag/${src.tag}";
47 license = licenses.mit;
48 maintainers = with maintainers; [ fab ];
49 };
50}