Files
nixpkgs/pkgs/development/python-modules/msg-parser/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

40 lines
882 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
# dependencies
olefile,
# test dependencies
pytestCheckHook,
}:
let
pname = "msg-parser";
version = "1.2.0";
in
buildPythonPackage {
inherit pname version;
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "vikramarsid";
repo = "msg_parser";
rev = "4100b553b24895b489ebd414c771933fc1e558d3";
hash = "sha256-srDk6w8nzt0dyGCFQWfVCnKb4LawHoqoHX6d1l1dAmM=";
};
propagatedBuildInputs = [ olefile ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Python module to read, parse and converting Microsoft Outlook MSG E-Mail files";
mainProgram = "msg_parser";
homepage = "https://github.com/vikramarsid/msg_parser";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ happysalada ];
};
}