Unverified Commit 08dc11f4 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

python312Packages.python-hpilo: refactor (#373399)

parents 4c03a506 3ebf0068
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
@@ -2,32 +2,37 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
}:

buildPythonPackage rec {
  pname = "python-hpilo";
  version = "4.4.3";
  format = "setuptools";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "seveas";
    repo = pname;
    rev = version;
    sha256 = "1dk5xswydw7nmn9hlna1xca1mzcas9qv2kmid5yx8kvk3hjqci9v";
    repo = "python-hpilo";
    tag = version;
    hash = "sha256-O0WGJRxzT9R9abFOsXHSiv0aFOtBWQqTrfbw5rnuZbY=";
  };

  build-system = [ setuptools ];

  # Most tests requires an actual iLO to run
  doCheck = false;

  pythonImportsCheck = [ "hpilo" ];

  meta = with lib; {
    description = "Python module to access the HP iLO XML interface";
    mainProgram = "hpilo_cli";
    homepage = "https://seveas.github.io/python-hpilo/";
    changelog = "https://github.com/seveas/python-hpilo/blob/${version}/CHANGES";
    license = with licenses; [
      asl20
      gpl3Plus
    ];
    maintainers = with maintainers; [ fab ];
    mainProgram = "hpilo_cli";
  };
}