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.2"; 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "kontron"; 18 repo = pname; 19 rev = version; 20 sha256 = "sha256-VXWSoVRfgJWf9rOT4SE1mTJdeNmzR3TRc2pc6Pp1M5U="; 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}