From 73873af859ebb4fccce96202c1d82c0c2c9628cd Mon Sep 17 00:00:00 2001 From: jaredmontoya <49511278+jaredmontoya@users.noreply.github.com> Date: Wed, 23 Apr 2025 11:25:25 +0200 Subject: [PATCH] markitdown: unstable-2024-12-18 -> 0.1.1 --- .../python-modules/markitdown/default.nix | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/markitdown/default.nix b/pkgs/development/python-modules/markitdown/default.nix index a52844307a57..244f9ce8e1ed 100644 --- a/pkgs/development/python-modules/markitdown/default.nix +++ b/pkgs/development/python-modules/markitdown/default.nix @@ -5,6 +5,7 @@ hatchling, beautifulsoup4, ffmpeg-headless, + magika, mammoth, markdownify, numpy, @@ -19,30 +20,38 @@ requests, speechrecognition, youtube-transcript-api, + olefile, + xlrd, + lxml, pytestCheckHook, gitUpdater, }: -buildPythonPackage { +buildPythonPackage rec { pname = "markitdown"; - version = "unstable-2024-12-18"; + version = "0.1.1"; pyproject = true; src = fetchFromGitHub { owner = "microsoft"; repo = "markitdown"; - rev = "3ce21a47abed0e4db162de1088d661887ae076ff"; - hash = "sha256-5YafFL8OHNcGgB/qH6CmX0rTith1ZSRNIa+ktl4Ffvg="; + tag = "v${version}"; + hash = "sha256-siXam2a+ryyLBbciQgjd9k6zC8r46LbzjPMoc1dG0wk="; }; + sourceRoot = "${src.name}/packages/markitdown"; + build-system = [ hatchling ]; dependencies = [ beautifulsoup4 ffmpeg-headless + lxml + magika mammoth markdownify numpy + olefile openai openpyxl pandas @@ -53,6 +62,7 @@ buildPythonPackage { python-pptx requests speechrecognition + xlrd youtube-transcript-api ]; @@ -63,6 +73,9 @@ buildPythonPackage { disabledTests = [ # Require network access "test_markitdown_remote" + "test_module_vectors" + "test_cli_vectors" + "test_module_misc" ]; passthru.updateScripts = gitUpdater { };