mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-15 04:20:23 +08:00
40 lines
818 B
Nix
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";
|
|
};
|
|
}
|