1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitLab,
5 setuptools,
6 aiohttp,
7 tenacity,
8 aioresponses,
9 pytest-asyncio,
10 pytestCheckHook,
11}:
12
13buildPythonPackage rec {
14 pname = "doorbirdpy";
15 version = "3.0.8";
16 pyproject = true;
17
18 src = fetchFromGitLab {
19 owner = "klikini";
20 repo = "doorbirdpy";
21 rev = "refs/tags/${version}";
22 hash = "sha256-UayXJhfiiwB2aXCa5V1U/LnNiV7KX4lpIG9hNG6iCm0=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [
28 aiohttp
29 tenacity
30 ];
31
32 nativeCheckInputs = [
33 aioresponses
34 pytest-asyncio
35 pytestCheckHook
36 ];
37
38 pythonImportsCheck = [ "doorbirdpy" ];
39
40 meta = with lib; {
41 changelog = "https://gitlab.com/klikini/doorbirdpy/-/tags/${version}";
42 description = "Python wrapper for the DoorBird LAN API";
43 homepage = "https://gitlab.com/klikini/doorbirdpy";
44 license = licenses.mit;
45 maintainers = with maintainers; [ dotlambda ];
46 };
47}