mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-14 20:10:25 +08:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
39 lines
839 B
Nix
39 lines
839 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-hpilo";
|
|
version = "4.4.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "seveas";
|
|
repo = "python-hpilo";
|
|
tag = version;
|
|
hash = "sha256-O0WGJRxzT9R9abFOsXHSiv0aFOtBWQqTrfbw5rnuZbY=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
# Most tests requires an actual iLO to run
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "hpilo" ];
|
|
|
|
meta = {
|
|
description = "Python module to access the HP iLO XML interface";
|
|
homepage = "https://seveas.github.io/python-hpilo/";
|
|
changelog = "https://github.com/seveas/python-hpilo/blob/${version}/CHANGES";
|
|
license = with lib.licenses; [
|
|
asl20
|
|
gpl3Plus
|
|
];
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "hpilo_cli";
|
|
};
|
|
}
|