diff --git a/pkgs/development/python-modules/extract-msg/default.nix b/pkgs/development/python-modules/extract-msg/default.nix index 171ee9acbd11..633218c3621b 100644 --- a/pkgs/development/python-modules/extract-msg/default.nix +++ b/pkgs/development/python-modules/extract-msg/default.nix @@ -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 ]; }; -} +})