Unverified Commit fe9d2849 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

glances: 4.1.2.1 -> 4.2.0 (#351278)

parents d877d2ca 0289fb4b
Loading
Loading
Loading
Loading
+16 −17
Original line number Diff line number Diff line
@@ -5,20 +5,15 @@
  isPyPy,
  lib,
  defusedxml,
  future,
  ujson,
  packaging,
  psutil,
  setuptools,
  pydantic,
  # Optional dependencies:
  fastapi,
  jinja2,
  orjson,
  pysnmp,
  hddtemp,
  netifaces, # IP module
  py-cpuinfo,
  uvicorn,
  requests,
  prometheus-client,
@@ -26,16 +21,20 @@

buildPythonApplication rec {
  pname = "glances";
  version = "4.1.2.1";
  version = "4.2.0";
  pyproject = true;

  disabled = isPyPy;

  src = fetchFromGitHub {
    owner = "nicolargo";
    repo = "glances";
    rev = "refs/tags/v${version}";
    hash = "sha256-SlKt+wjzI9QRmMVvbIERuhQuCCaOh7L89WuNUXNhkuI=";
    hash = "sha256-liyrMaqBgK7UZjWIKIgIFbskTGaWfyrK8L74DKmaDmY=";
  };

  build-system = [ setuptools ];

  # On Darwin this package segfaults due to mismatch of pure and impure
  # CoreFoundation. This issues was solved for binaries but for interpreted
  # scripts a workaround below is still required.
@@ -46,27 +45,27 @@ buildPythonApplication rec {
    "/System/Library/Frameworks"
  ];

  doCheck = true;
  preCheck = lib.optionalString stdenv.hostPlatform.isDarwin ''
    export DYLD_FRAMEWORK_PATH=/System/Library/Frameworks
  # some tests fail in darwin sandbox
  doCheck = !stdenv.hostPlatform.isDarwin;

  checkPhase = ''
    runHook preCheck

    python unittest-core.py

    runHook postCheck
  '';

  propagatedBuildInputs = [
  dependencies = [
    defusedxml
    future
    ujson
    netifaces
    packaging
    psutil
    pysnmp
    setuptools
    py-cpuinfo
    pydantic
    fastapi
    uvicorn
    requests
    jinja2
    orjson
    prometheus-client
  ] ++ lib.optional stdenv.hostPlatform.isLinux hddtemp;