Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 91 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192{ lib, buildPythonPackage, fetchFromGitHub, hatchling, beautifulsoup4, defusedxml, ffmpeg-headless, magika, mammoth, markdownify, numpy, openai, openpyxl, pandas, pathvalidate, pdfminer-six, puremagic, pydub, python-pptx, requests, speechrecognition, youtube-transcript-api, olefile, xlrd, lxml, pytestCheckHook, gitUpdater,}:
buildPythonPackage rec { pname = "markitdown"; version = "0.1.2"; pyproject = true;
src = fetchFromGitHub { owner = "microsoft"; repo = "markitdown"; tag = "v${version}"; hash = "sha256-7T5cuFBivazKlUk3OKXKKU3YazRAfGRt9O+gCYX3ciQ="; };
sourceRoot = "${src.name}/packages/markitdown";
build-system = [ hatchling ];
dependencies = [ beautifulsoup4 defusedxml ffmpeg-headless lxml magika mammoth markdownify numpy olefile openai openpyxl pandas pathvalidate pdfminer-six puremagic pydub python-pptx requests speechrecognition xlrd youtube-transcript-api ];
pythonImportsCheck = [ "markitdown" ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [ # Require network access "test_markitdown_remote" "test_module_vectors" "test_cli_vectors" "test_module_misc" ];
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 ]; };}