at 24.05-pre 1.0 kB view raw
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.1.0"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchFromGitHub { 21 owner = "home-assistant-ecosystem"; 22 repo = "python-netdata"; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-XWlUSKGgndHtJjzA0mYvhCkJsRJ1SUbl8DGdmyFUmoo="; 25 }; 26 27 nativeBuildInputs = [ 28 poetry-core 29 ]; 30 31 propagatedBuildInputs = [ 32 httpx 33 yarl 34 ]; 35 36 nativeCheckInputs = [ 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 changelog = "https://github.com/home-assistant-ecosystem/python-netdata/releases/tag/${version}"; 50 license = with licenses; [ mit ]; 51 maintainers = with maintainers; [ fab ]; 52 }; 53}