1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, aiohttp
5, async-timeout
6}:
7
8buildPythonPackage rec {
9 pname = "glances-api";
10 version = "0.2.1";
11
12 src = fetchFromGitHub {
13 owner = "home-assistant-ecosystem";
14 repo = "python-glances-api";
15 rev = version;
16 sha256 = "sha256-mbkZZg2fmus4kOXFxHE/UV/nxemFAsoEZu8IUa7SPsg=";
17 };
18
19 propagatedBuildInputs = [
20 aiohttp
21 async-timeout
22 ];
23
24 # no tests are present
25 doCheck = false;
26 pythonImportsCheck = [ "glances_api" ];
27
28 meta = with lib; {
29 description = "Python API for interacting with Glances";
30 homepage = "https://github.com/home-assistant-ecosystem/python-glances-api";
31 license = with licenses; [ mit ];
32 maintainers = with maintainers; [ fab ];
33 };
34}