summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-oxmsg/default.nix
blob: c98197e8291872fc2f1267d5e566cb8b7bd97179 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
  buildPythonPackage,
  click,
  fetchFromGitHub,
  lib,
  olefile,
  pytestCheckHook,
  setuptools,
  typing-extensions,
}:

buildPythonPackage rec {
  pname = "python-oxmsg";
  version = "0.0.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "scanny";
    repo = "python-oxmsg";
    tag = "v${version}";
    hash = "sha256-ramM27+SylBeJyb3kkRm1xn3qAefiLuBOvI/iucK2wM=";
  };

  build-system = [ setuptools ];

  dependencies = [
    click
    olefile
    typing-extensions
  ];

  pythonImportsCheck = [ "oxmsg" ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = {
    changelog = "https://github.com/scanny/python-oxmsg/blob/${src.tag}/CHANGELOG.md";
    description = "Extract attachments from Outlook .msg files";
    homepage = "https://github.com/scanny/python-oxmsg";
    license = lib.licenses.mit;
    mainProgram = "oxmsg";
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}