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.4"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "kontron"; 20 repo = pname; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-IXEq3d1nXGEndciQw2MJ1Abc0vmEYez+k6aWGSWEzWA="; 23 }; 24 25 postPatch = '' 26 substituteInPlace setup.py \ 27 --replace "version=version," "version='${version}'," 28 ''; 29 30 propagatedBuildInputs = [ 31 future 32 ]; 33 34 nativeCheckInputs = [ 35 mock 36 nose 37 pytestCheckHook 38 ]; 39 40 pythonImportsCheck = [ 41 "pyipmi" 42 ]; 43 44 meta = with lib; { 45 description = "Python IPMI Library"; 46 homepage = "https://github.com/kontron/python-ipmi"; 47 license = with licenses; [ lgpl2Plus ]; 48 maintainers = with maintainers; [ fab ]; 49 }; 50}