Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ff612c5e560b
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9825f547cadb
Choose a head ref
  • 3 commits
  • 3 files changed
  • 2 contributors

Commits on Jan 4, 2021

  1. Copy the full SHA
    9a719a0 View commit details
  2. Copy the full SHA
    d824b95 View commit details

Commits on Jan 5, 2021

  1. Merge pull request #108425 from fabaff/glances_api

    python3Packages.glances-api: init at 0.2.0
    mweinelt authored Jan 5, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    9825f54 View commit details
Showing with 37 additions and 1 deletion.
  1. +34 −0 pkgs/development/python-modules/glances-api/default.nix
  2. +1 −1 pkgs/servers/home-assistant/component-packages.nix
  3. +2 −0 pkgs/top-level/python-packages.nix
34 changes: 34 additions & 0 deletions pkgs/development/python-modules/glances-api/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, async-timeout
}:

buildPythonPackage rec {
pname = "glances-api";
version = "0.2.0";

src = fetchFromGitHub {
owner = "home-assistant-ecosystem";
repo = "python-glances-api";
rev = version;
sha256 = "0rgv77n0lvr7d3vk4qc8svipxafmm6s4lfxrl976hsygrhaqidch";
};

propagatedBuildInputs = [
aiohttp
async-timeout
];

# no tests are present
doCheck = false;
pythonImportsCheck = [ "glances_api" ];

meta = with lib; {
description = "Python Wrapper for interacting with the Volkszahler API";
homepage = "https://github.com/home-assistant-ecosystem/python-glances-api";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
2 changes: 1 addition & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Original file line number Diff line number Diff line change
@@ -303,7 +303,7 @@
"github" = ps: with ps; [ PyGithub ];
"gitlab_ci" = ps: with ps; [ python-gitlab ];
"gitter" = ps: with ps; [ ]; # missing inputs: gitterpy
"glances" = ps: with ps; [ ]; # missing inputs: glances_api
"glances" = ps: with ps; [ glances-api ];
"gntp" = ps: with ps; [ gntp ];
"goalfeed" = ps: with ps; [ ]; # missing inputs: pysher
"goalzero" = ps: with ps; [ ]; # missing inputs: goalzero
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -2468,6 +2468,8 @@ in {

glances = throw "glances has moved to pkgs.glances"; # added 2020-20-28

glances-api = callPackage ../development/python-modules/glances-api { };

glasgow = callPackage ../development/python-modules/glasgow { };

glob2 = callPackage ../development/python-modules/glob2 { };