1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pytest-cov-stub,
7 pytest-asyncio,
8 pytest-timeout,
9 responses,
10 pytestCheckHook,
11 pythonOlder,
12 requests,
13}:
14
15buildPythonPackage rec {
16 pname = "pyvera";
17 version = "0.3.16";
18 pyproject = true;
19
20 disabled = pythonOlder "3.11";
21
22 src = fetchFromGitHub {
23 owner = "pavoni";
24 repo = "pyvera";
25 tag = version;
26 hash = "sha256-WLzVOQEykST2BsVRHmcBhrsd/am0jI/f7D0PmpCTbdQ=";
27 };
28
29 build-system = [ poetry-core ];
30
31 dependencies = [ requests ];
32
33 nativeCheckInputs = [
34 pytest-asyncio
35 pytest-timeout
36 pytest-cov-stub
37 pytestCheckHook
38 responses
39 ];
40
41 pythonImportsCheck = [ "pyvera" ];
42
43 meta = with lib; {
44 description = "Python library to control devices via the Vera hub";
45 homepage = "https://github.com/pavoni/pyvera";
46 changelog = "https://github.com/maximvelichko/pyvera/releases/tag/${version}";
47 license = licenses.gpl2Only;
48 maintainers = with maintainers; [ fab ];
49 };
50}