python3Packages.markitdown: 0.1.4 -> 0.1.6, fix passthru.updateScript (#525661)
This commit is contained in:
@@ -8,21 +8,20 @@
|
||||
hatchling,
|
||||
|
||||
# dependencies
|
||||
azure-ai-documentintelligence,
|
||||
azure-identity,
|
||||
beautifulsoup4,
|
||||
charset-normalizer,
|
||||
defusedxml,
|
||||
ffmpeg-headless,
|
||||
lxml,
|
||||
magika,
|
||||
mammoth,
|
||||
markdownify,
|
||||
numpy,
|
||||
olefile,
|
||||
openai,
|
||||
openpyxl,
|
||||
pandas,
|
||||
pathvalidate,
|
||||
pdfminer-six,
|
||||
puremagic,
|
||||
pdfplumber,
|
||||
pydub,
|
||||
python-pptx,
|
||||
requests,
|
||||
@@ -42,14 +41,14 @@ let
|
||||
in
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "markitdown";
|
||||
version = "0.1.4";
|
||||
version = "0.1.6";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "microsoft";
|
||||
repo = "markitdown";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-WKA2eY8wY3SM9xZ7Cek5eUcJbO5q6eMDx2aTKfQnFvE=";
|
||||
hash = "sha256-pLL44w2jVj5X5/TmPqSveQe/9WLj0ddDUYPoSQlz+9E=";
|
||||
};
|
||||
|
||||
sourceRoot = "${finalAttrs.src.name}/packages/markitdown";
|
||||
@@ -58,23 +57,24 @@ buildPythonPackage (finalAttrs: {
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"magika"
|
||||
"mammoth"
|
||||
"youtube-transcript-api"
|
||||
];
|
||||
dependencies = [
|
||||
azure-ai-documentintelligence
|
||||
azure-identity
|
||||
beautifulsoup4
|
||||
charset-normalizer
|
||||
defusedxml
|
||||
ffmpeg-headless
|
||||
lxml
|
||||
magika
|
||||
mammoth
|
||||
markdownify
|
||||
numpy
|
||||
olefile
|
||||
openai
|
||||
openpyxl
|
||||
pandas
|
||||
pathvalidate
|
||||
pdfminer-six
|
||||
puremagic
|
||||
pdfplumber
|
||||
pydub
|
||||
python-pptx
|
||||
requests
|
||||
@@ -98,9 +98,19 @@ buildPythonPackage (finalAttrs: {
|
||||
"test_module_vectors"
|
||||
"test_cli_vectors"
|
||||
"test_module_misc"
|
||||
|
||||
# Require optional azure-ai-contentunderstanding, unavailable in nixpkgs.
|
||||
# The fallback stubs hit `UserAgentPolicy() takes no arguments`.
|
||||
"test_nonexistent_analyzer_raises_value_error"
|
||||
"test_cu_registered_before_docintel"
|
||||
];
|
||||
|
||||
passthru.updateScript = gitUpdater { };
|
||||
passthru.updateScript = gitUpdater {
|
||||
# Drop the "v" tag prefix before version comparison.
|
||||
rev-prefix = "v";
|
||||
# Skip PEP 440 pre-release tags.
|
||||
ignoredVersions = "(a|b|rc)[0-9]+$";
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Python tool for converting files and office documents to Markdown";
|
||||
|
||||
Reference in New Issue
Block a user