Skip to content

Commit

Permalink
python312Packages.mammoth: init at 1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Dec 16, 2024
1 parent 0a87001 commit de04daf
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
60 changes: 60 additions & 0 deletions pkgs/development/python-modules/mammoth/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
cobble,
funk,
pytestCheckHook,
spur,
tempman,
}:

buildPythonPackage rec {
pname = "mammoth";
version = "1.8.0";
pyproject = true;

src = fetchFromGitHub {
owner = "mwilliamson";
repo = "python-mammoth";
rev = version;
hash = "sha256-mIvzEyKpy1j7tZti+QTXgsbqqZAhYs7N+p5sQFsLhBg=";
};

postPatch = ''
substituteInPlace setup.py \
--replace-fail 'read("README")' '""'
'';

build-system = [
setuptools
];

dependencies = [
cobble
];

pythonImportsCheck = [
"mammoth"
];

nativeCheckInputs = [
funk
pytestCheckHook
spur
tempman
];

disabledTestPaths = [
"tests/cli_tests.py"
];

meta = {
description = "Convert Word documents (.docx files) to HTML";
homepage = "https://github.com/mwilliamson/python-mammoth";
changelog = "https://github.com/mwilliamson/python-mammoth/blob/${src.rev}/NEWS";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ drupol ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7793,6 +7793,8 @@ self: super: with self; {

malduck = callPackage ../development/python-modules/malduck { };

mammoth = callPackage ../development/python-modules/mammoth { };

mamba-ssm = callPackage ../development/python-modules/mamba-ssm { };

managesieve = callPackage ../development/python-modules/managesieve { };
Expand Down

0 comments on commit de04daf

Please sign in to comment.