2025-06-15 18:45:28 -07:00

42 lines
836 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "python-ipmi";
version = "0.5.7";
pyproject = true;
src = fetchFromGitHub {
owner = "kontron";
repo = "python-ipmi";
tag = version;
hash = "sha256-vwjVUkTeVC1On1I1BtM0kBbne6CbX/6Os1+HA8WN9jU=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "version=version," "version='${version}',"
'';
build-system = [ setuptools ];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "pyipmi" ];
meta = with lib; {
description = "Python IPMI Library";
mainProgram = "ipmitool.py";
homepage = "https://github.com/kontron/python-ipmi";
license = with licenses; [ lgpl2Plus ];
maintainers = with maintainers; [ fab ];
};
}