blob: 549ea21dc74d642fe46a59d898402fe3f45c7442 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{
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";
};
}
|