biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / extract-msg / default.nix
blob45959765581f8a582105464d876fc68c51d5c1fb
2   lib,
3   beautifulsoup4,
4   buildPythonPackage,
5   compressed-rtf,
6   ebcdic,
7   fetchFromGitHub,
8   olefile,
9   pytestCheckHook,
10   pythonOlder,
11   red-black-tree-mod,
12   rtfde,
13   setuptools,
14   tzlocal,
17 buildPythonPackage rec {
18   pname = "extract-msg";
19   version = "0.50.1";
20   pyproject = true;
22   disabled = pythonOlder "3.7";
24   src = fetchFromGitHub {
25     owner = "TeamMsgExtractor";
26     repo = "msg-extractor";
27     rev = "refs/tags/v${version}";
28     hash = "sha256-MWqJYdv+P87n5KtrtSJnyY59uuLtHL9EG8WyYRdfSTw=";
29   };
31   pythonRelaxDeps = [
32     "olefile"
33     "red-black-tree-mod"
34   ];
36   build-system = [
37     setuptools
38   ];
40   dependencies = [
41     beautifulsoup4
42     compressed-rtf
43     ebcdic
44     olefile
45     red-black-tree-mod
46     rtfde
47     tzlocal
48   ];
50   nativeCheckInputs = [ pytestCheckHook ];
52   pythonImportsCheck = [ "extract_msg" ];
54   pytestFlagsArray = [ "extract_msg_tests/*.py" ];
56   meta = with lib; {
57     description = "Extracts emails and attachments saved in Microsoft Outlook's .msg files";
58     homepage = "https://github.com/TeamMsgExtractor/msg-extractor";
59     changelog = "https://github.com/TeamMsgExtractor/msg-extractor/blob/${version}/CHANGELOG.md";
60     license = licenses.gpl3Only;
61     maintainers = with maintainers; [ fab ];
62   };