python3Packages.extract-msg: cleanup, fix (#479025)

This commit is contained in:
Gaétan Lepage
2026-01-12 15:56:56 +00:00
committed by GitHub
@@ -1,19 +1,25 @@
{
lib,
beautifulsoup4,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
beautifulsoup4,
compressed-rtf,
ebcdic,
fetchFromGitHub,
olefile,
pytestCheckHook,
red-black-tree-mod,
rtfde,
setuptools,
tzlocal,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "extract-msg";
version = "0.55.0";
pyproject = true;
@@ -21,18 +27,17 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "TeamMsgExtractor";
repo = "msg-extractor";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-n/v3ubgzWlWqLXZfy1O7+FvTJoLMtgL7DFPL39SZnfM=";
};
pythonRelaxDeps = [
"beautifulsoup4"
"olefile"
"red-black-tree-mod"
build-system = [
setuptools
];
build-system = [ setuptools ];
pythonRelaxDeps = [
"beautifulsoup4"
];
dependencies = [
beautifulsoup4
compressed-rtf
@@ -52,8 +57,8 @@ buildPythonPackage rec {
meta = {
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/${src.tag}/CHANGELOG.md";
changelog = "https://github.com/TeamMsgExtractor/msg-extractor/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ fab ];
};
}
})