1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, poetry-core
6, httpx
7, pytest-asyncio
8, pytest-httpx
9, pytestCheckHook
10, yarl
11}:
12
13buildPythonPackage rec {
14 pname = "netdata";
15 version = "1.0.3";
16 format = "pyproject";
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchFromGitHub {
21 owner = "home-assistant-ecosystem";
22 repo = "python-netdata";
23 rev = version;
24 sha256 = "sha256-vrXXvCoZ1jErlxTcjGbtA8Uio7UDxnt3aNb9FQ0PkrU=";
25 };
26
27 nativeBuildInputs = [
28 poetry-core
29 ];
30
31 propagatedBuildInputs = [
32 httpx
33 yarl
34 ];
35
36 checkInputs = [
37 pytest-asyncio
38 pytest-httpx
39 pytestCheckHook
40 ];
41
42 pythonImportsCheck = [
43 "netdata"
44 ];
45
46 meta = with lib; {
47 description = "Python API for interacting with Netdata";
48 homepage = "https://github.com/home-assistant-ecosystem/python-netdata";
49 license = with licenses; [ mit ];
50 maintainers = with maintainers; [ fab ];
51 };
52}