Skip to content

Commit 08dc11f

Browse files
authored
python312Packages.python-hpilo: refactor (#373399)
2 parents 4c03a50 + 3ebf006 commit 08dc11f

File tree

1 file changed

+10
-5
lines changed
  • pkgs/development/python-modules/python-hpilo

1 file changed

+10
-5
lines changed

pkgs/development/python-modules/python-hpilo/default.nix

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,37 @@
22
lib,
33
buildPythonPackage,
44
fetchFromGitHub,
5+
setuptools,
56
}:
67

78
buildPythonPackage rec {
89
pname = "python-hpilo";
910
version = "4.4.3";
10-
format = "setuptools";
11+
pyproject = true;
1112

1213
src = fetchFromGitHub {
1314
owner = "seveas";
14-
repo = pname;
15-
rev = version;
16-
sha256 = "1dk5xswydw7nmn9hlna1xca1mzcas9qv2kmid5yx8kvk3hjqci9v";
15+
repo = "python-hpilo";
16+
tag = version;
17+
hash = "sha256-O0WGJRxzT9R9abFOsXHSiv0aFOtBWQqTrfbw5rnuZbY=";
1718
};
1819

20+
build-system = [ setuptools ];
21+
1922
# Most tests requires an actual iLO to run
2023
doCheck = false;
24+
2125
pythonImportsCheck = [ "hpilo" ];
2226

2327
meta = with lib; {
2428
description = "Python module to access the HP iLO XML interface";
25-
mainProgram = "hpilo_cli";
2629
homepage = "https://seveas.github.io/python-hpilo/";
30+
changelog = "https://github.com/seveas/python-hpilo/blob/${version}/CHANGES";
2731
license = with licenses; [
2832
asl20
2933
gpl3Plus
3034
];
3135
maintainers = with maintainers; [ fab ];
36+
mainProgram = "hpilo_cli";
3237
};
3338
}

0 commit comments

Comments
 (0)