@@ -0,0 +1,34 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, aiohttp
5+, async-timeout
6+}:
7+
8+buildPythonPackage rec {
9+ pname = "glances-api";
10+ version = "0.2.0";
11+
12+ src = fetchFromGitHub {
13+ owner = "home-assistant-ecosystem";
14+ repo = "python-glances-api";
15+ rev = version;
16+ sha256 = "0rgv77n0lvr7d3vk4qc8svipxafmm6s4lfxrl976hsygrhaqidch";
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 Wrapper for interacting with the Volkszahler API";
30+ homepage = "https://github.com/home-assistant-ecosystem/python-glances-api";
31+ license = with licenses; [ mit ];
32+ maintainers = with maintainers; [ fab ];
33+ };
34+}