git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #108425 from fabaff/glances_api

python3Packages.glances-api: init at 0.2.0

commit9825f547cadb0ab843e579c2217720b1a4a388bb authorMartin Weinelt <mweinelt@users.noreply.github.com> dateTue 5 Jan 2021, 18:39 (6 years ago) parentff612c5d824b95
3 files changed+37−1
pkgs/development/python-modules/glances-api/default.nix+34 pkgs/servers/home-assistant/component-packages.nix+1−1 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/glances-api/default.nixnew file+34
@@ -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+}
pkgs/servers/home-assistant/component-packages.nix+1−1
@@ -303,7 +303,7 @@
303303 "github" = ps: with ps; [ PyGithub ];
304304 "gitlab_ci" = ps: with ps; [ python-gitlab ];
305305 "gitter" = ps: with ps; [ ]; # missing inputs: gitterpy
306− "glances" = ps: with ps; [ ]; # missing inputs: glances_api
306+ "glances" = ps: with ps; [ glances-api ];
307307 "gntp" = ps: with ps; [ gntp ];
308308 "goalfeed" = ps: with ps; [ ]; # missing inputs: pysher
309309 "goalzero" = ps: with ps; [ ]; # missing inputs: goalzero
pkgs/top-level/python-packages.nix+2
@@ -2468,6 +2468,8 @@ in {
24682468
24692469 glances = throw "glances has moved to pkgs.glances"; # added 2020-20-28
24702470
2471+ glances-api = callPackage ../development/python-modules/glances-api { };
2472+
24712473 glasgow = callPackage ../development/python-modules/glasgow { };
24722474
24732475 glob2 = callPackage ../development/python-modules/glob2 { };