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