2024-04-04 08:28:11 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
beautifulsoup4,
|
|
|
|
buildPythonPackage,
|
|
|
|
compressed-rtf,
|
|
|
|
ebcdic,
|
|
|
|
fetchFromGitHub,
|
|
|
|
olefile,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
red-black-tree-mod,
|
|
|
|
rtfde,
|
|
|
|
setuptools,
|
|
|
|
tzlocal,
|
2024-03-18 09:34:11 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "extract-msg";
|
2024-10-26 09:54:53 +00:00
|
|
|
version = "0.52.0";
|
2024-03-18 09:34:11 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TeamMsgExtractor";
|
|
|
|
repo = "msg-extractor";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-10-26 09:54:53 +00:00
|
|
|
hash = "sha256-4jvzZkGa/xI5Sl9TBIm/BD3tGl+MZvwir6m/zrvA4tQ=";
|
2024-03-18 09:34:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"olefile"
|
|
|
|
"red-black-tree-mod"
|
|
|
|
];
|
|
|
|
|
2024-03-28 10:19:15 +00:00
|
|
|
build-system = [
|
2024-03-18 09:34:11 +00:00
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2024-03-28 10:19:15 +00:00
|
|
|
dependencies = [
|
2024-03-18 09:34:11 +00:00
|
|
|
beautifulsoup4
|
|
|
|
compressed-rtf
|
|
|
|
ebcdic
|
|
|
|
olefile
|
|
|
|
red-black-tree-mod
|
|
|
|
rtfde
|
|
|
|
tzlocal
|
|
|
|
];
|
|
|
|
|
2024-04-04 08:28:11 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2024-03-18 09:34:11 +00:00
|
|
|
|
2024-04-04 08:28:11 +00:00
|
|
|
pythonImportsCheck = [ "extract_msg" ];
|
2024-03-18 09:34:11 +00:00
|
|
|
|
2024-04-04 08:28:11 +00:00
|
|
|
pytestFlagsArray = [ "extract_msg_tests/*.py" ];
|
2024-03-18 09:34:11 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Extracts emails and attachments saved in Microsoft Outlook's .msg files";
|
|
|
|
homepage = "https://github.com/TeamMsgExtractor/msg-extractor";
|
|
|
|
changelog = "https://github.com/TeamMsgExtractor/msg-extractor/blob/${version}/CHANGELOG.md";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|