1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 # dependencies 7 olefile, 8 # test dependencies 9 pytestCheckHook, 10}: 11let 12 pname = "msg-parser"; 13 version = "1.2.0"; 14in 15buildPythonPackage { 16 inherit pname version; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.8"; 20 21 src = fetchFromGitHub { 22 owner = "vikramarsid"; 23 repo = "msg_parser"; 24 rev = "4100b553b24895b489ebd414c771933fc1e558d3"; 25 hash = "sha256-srDk6w8nzt0dyGCFQWfVCnKb4LawHoqoHX6d1l1dAmM="; 26 }; 27 28 propagatedBuildInputs = [ olefile ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 meta = with lib; { 33 description = "Python module to read, parse and converting Microsoft Outlook MSG E-Mail files"; 34 mainProgram = "msg_parser"; 35 homepage = "https://github.com/vikramarsid/msg_parser"; 36 license = licenses.bsd2; 37 maintainers = with maintainers; [ happysalada ]; 38 }; 39}