Unverified Commit 06bf35c3 authored by natsukium's avatar natsukium
Browse files

glances: switch to pypa builder

parent 9e212d6d
Loading
Loading
Loading
Loading
+5 −12
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,
@@ -27,6 +22,8 @@
buildPythonApplication rec {
  pname = "glances";
  version = "4.2.0";
  pyproject = true;

  disabled = isPyPy;

  src = fetchFromGitHub {
@@ -36,6 +33,8 @@ buildPythonApplication rec {
    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.
@@ -51,22 +50,16 @@ buildPythonApplication rec {
    export DYLD_FRAMEWORK_PATH=/System/Library/Frameworks
  '';

  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;