blob: b6ded2ff8c2cfb00d7b22637be01a95d5ae58638 (
plain) (
blame)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, future
, mock
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "python-ipmi";
version = "0.5.5";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "kontron";
repo = "python-ipmi";
rev = "refs/tags/${version}";
hash = "sha256-G5FcFHtyN8bXMjj/yfJgzcfmV1mxQ9lu3GM3XMeTWVU=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "version=version," "version='${version}',"
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
future
];
nativeCheckInputs = [
mock
pytestCheckHook
];
pythonImportsCheck = [
"pyipmi"
];
meta = with lib; {
description = "Python IPMI Library";
homepage = "https://github.com/kontron/python-ipmi";
license = with licenses; [ lgpl2Plus ];
maintainers = with maintainers; [ fab ];
};
}
|