From 82489bfba6b85d01988c130d31041a62c37234ab Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Mon, 16 Dec 2024 21:08:05 +0100 Subject: [PATCH] python312Packages.mammoth: init at 1.8.0 --- .../python-modules/mammoth/default.nix | 35 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/python-modules/mammoth/default.nix diff --git a/pkgs/development/python-modules/mammoth/default.nix b/pkgs/development/python-modules/mammoth/default.nix new file mode 100644 index 0000000000000..6760bb257fbd8 --- /dev/null +++ b/pkgs/development/python-modules/mammoth/default.nix @@ -0,0 +1,35 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, +}: + +buildPythonPackage rec { + pname = "mammoth"; + version = "1.8.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "mwilliamson"; + repo = "python-mammoth"; + rev = version; + hash = "sha256-mIvzEyKpy1j7tZti+QTXgsbqqZAhYs7N+p5sQFsLhBg="; + }; + + build-system = [ + setuptools + ]; + + pythonImportsCheck = [ + "mammoth" + ]; + + 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; [ ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b4429cfa2792d..2b5851af1f9c5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7789,6 +7789,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 { };