Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 47 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 fetchpatch2, 6 httpx, 7 poetry-core, 8 pytest-asyncio, 9 pytest-httpx, 10 pytestCheckHook, 11 pythonOlder, 12}: 13 14buildPythonPackage rec { 15 pname = "glances-api"; 16 version = "0.9.0"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.11"; 20 21 src = fetchFromGitHub { 22 owner = "home-assistant-ecosystem"; 23 repo = "python-glances-api"; 24 rev = "refs/tags/${version}"; 25 hash = "sha256-VLsNMFFt+kMxNw/81OMX4Fg/xCbQloCURmV0OxvClq8="; 26 }; 27 28 build-system = [ poetry-core ]; 29 30 dependencies = [ httpx ]; 31 32 nativeCheckInputs = [ 33 pytest-asyncio 34 pytest-httpx 35 pytestCheckHook 36 ]; 37 38 pythonImportsCheck = [ "glances_api" ]; 39 40 meta = with lib; { 41 description = "Python API for interacting with Glances"; 42 homepage = "https://github.com/home-assistant-ecosystem/python-glances-api"; 43 changelog = "https://github.com/home-assistant-ecosystem/python-glances-api/releases/tag/${version}"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}