mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 23:52:55 +00:00
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:
parent
6a611883d6
commit
0a80980fbf
70
pkgs/development/python-modules/extract-msg/default.nix
Normal file
70
pkgs/development/python-modules/extract-msg/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user