1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, future
5, mock
6, nose
7, pytestCheckHook
8, pythonOlder
9}:
10
11buildPythonPackage rec {
12 pname = "python-ipmi";
13 version = "0.5.1";
14 disabled = pythonOlder "3.6";
15
16 src = fetchFromGitHub {
17 owner = "kontron";
18 repo = pname;
19 rev = version;
20 sha256 = "0rcix3q845zsmfj5857kq1r5b8m7m3sad34i23k65m0p58clwdqm";
21 };
22
23 propagatedBuildInputs = [
24 future
25 ];
26
27 checkInputs = [
28 mock
29 nose
30 pytestCheckHook
31 ];
32
33 pythonImportsCheck = [ "pyipmi" ];
34
35 meta = with lib; {
36 description = "Python IPMI Library";
37 homepage = "https://github.com/kontron/python-ipmi";
38 license = with licenses; [ lgpl2Plus ];
39 maintainers = with maintainers; [ fab ];
40 };
41}