Files
nixpkgs/pkgs/development/python-modules/python-ipmi/default.nix
2025-12-11 14:54:05 +01:00

40 lines
818 B
Nix

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