python311Packages.extract-msg: init at 0.48.2

Extracts emails and attachments saved in Microsoft Outlook's .msg files

https://github.com/TeamMsgExtractor/msg-extractor
This commit is contained in:
Fabian Affolter 2024-03-18 10:34:11 +01:00
parent 6a611883d6
commit 0a80980fbf
2 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,70 @@
{ lib
, beautifulsoup4
, buildPythonPackage
, compressed-rtf
, ebcdic
, fetchFromGitHub
, olefile
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, red-black-tree-mod
, rtfde
, setuptools
, tzlocal
}:
buildPythonPackage rec {
pname = "extract-msg";
version = "0.48.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "TeamMsgExtractor";
repo = "msg-extractor";
rev = "refs/tags/v${version}";
hash = "sha256-qCOi4CRBGF5MuGcHVUk+zb76pchZXbE1cBUIlzl9++w=";
};
pythonRelaxDeps = [
"olefile"
"red-black-tree-mod"
];
nativeBuildInputs = [
pythonRelaxDepsHook
setuptools
];
propagatedBuildInputs = [
beautifulsoup4
compressed-rtf
ebcdic
olefile
red-black-tree-mod
rtfde
tzlocal
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"extract_msg"
];
pytestFlagsArray = [
"extract_msg_tests/*.py"
];
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 ];
};
}

View File

@ -3904,6 +3904,8 @@ self: super: with self; {
exitcode = callPackage ../development/python-modules/exitcode { };
extract-msg = callPackage ../development/python-modules/extract-msg { };
extractcode = callPackage ../development/python-modules/extractcode { };
extractcode-7z = callPackage ../development/python-modules/extractcode/7z.nix {