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