1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, poetry-core
5, pytest-cov
6, pytest-asyncio
7, pytest-timeout
8, responses
9, pytestCheckHook
10, requests
11}:
12
13buildPythonPackage rec {
14 pname = "pyvera";
15 version = "0.3.15";
16 format = "pyproject";
17
18 src = fetchFromGitHub {
19 owner = "pavoni";
20 repo = pname;
21 rev = version;
22 hash = "sha256-1+xIqOogRUt+blX7AZSKIiU8lpR4AzKIIW/smCSft94=";
23 };
24
25 nativeBuildInputs = [ poetry-core ];
26
27 propagatedBuildInputs = [ requests ];
28
29 nativeCheckInputs = [
30 pytest-asyncio
31 pytest-timeout
32 pytest-cov
33 pytestCheckHook
34 responses
35 ];
36
37 pythonImportsCheck = [ "pyvera" ];
38
39 meta = with lib; {
40 description = "Python library to control devices via the Vera hub";
41 homepage = "https://github.com/pavoni/pyvera";
42 license = with licenses; [ gpl2Only ];
43 maintainers = with maintainers; [ fab ];
44 };
45}