Skip to content

Commit

Permalink
python312Packages.markitdown: 0-unstable-2024-12-18
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Dec 17, 2024
1 parent cd4dff8 commit 3854473
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
74 changes: 74 additions & 0 deletions pkgs/development/python-modules/markitdown/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
beautifulsoup4,
ffmpeg-headless,
mammoth,
markdownify,
numpy,
openpyxl,
pandas,
pathvalidate,
pdfminer-six,
puremagic,
pydub,
python-pptx,
requests,
speechrecognition,
youtube-transcript-api,
pytestCheckHook,
gitUpdater,
}:

buildPythonPackage {
pname = "markitdown";
version = "unstable-2024-12-18";
pyproject = true;

src = fetchFromGitHub {
owner = "microsoft";
repo = "markitdown";
rev = "3ce21a47abed0e4db162de1088d661887ae076ff";
hash = "sha256-5YafFL8OHNcGgB/qH6CmX0rTith1ZSRNIa+ktl4Ffvg=";
};

build-system = [ hatchling ];

dependencies = [
beautifulsoup4
ffmpeg-headless
mammoth
markdownify
numpy
openpyxl
pandas
pathvalidate
pdfminer-six
puremagic
pydub
python-pptx
requests
speechrecognition
youtube-transcript-api
];

pythonImportsCheck = [ "markitdown" ];

nativeCheckInputs = [ pytestCheckHook ];

disabledTests = [
# Require network access
"test_markitdown_remote"
];

passthru.updateScripts = gitUpdater { };

meta = {
description = "Python tool for converting files and office documents to Markdown";
homepage = "https://github.com/microsoft/markitdown";
license = lib.licenses.mit;
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 @@ -7869,6 +7869,8 @@ self: super: with self; {

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

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

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

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

0 comments on commit 3854473

Please sign in to comment.