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