Skip to content

Commit

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

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

src = fetchFromGitHub {
owner = "microsoft";
repo = "markitdown";
rev = "81e3f24acd0049a59cd2dcb2d01d0a98cc57c734";
hash = "sha256-ejj7ARvLDzB1WRNkc1zUtzYAujZVysB0MkY/PQKv/nQ=";
};

build-system = [
hatchling
];

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

pythonImportsCheck = [
"markitdown"
];

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; [ ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7851,6 +7851,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 4b900d4

Please sign in to comment.