mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 08:24:10 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
36 lines
834 B
Nix
36 lines
834 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
# dependencies
|
|
olefile,
|
|
# test dependencies
|
|
pytestCheckHook,
|
|
}:
|
|
let
|
|
pname = "msg-parser";
|
|
version = "1.2.0";
|
|
in
|
|
buildPythonPackage {
|
|
inherit pname version;
|
|
format = "setuptools";
|
|
|
|
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 ];
|
|
};
|
|
}
|