diff options
Diffstat (limited to 'pkgs/development/python-modules/unstructured/default.nix')
-rw-r--r-- | pkgs/development/python-modules/unstructured/default.nix | 136 |
1 files changed, 73 insertions, 63 deletions
diff --git a/pkgs/development/python-modules/unstructured/default.nix b/pkgs/development/python-modules/unstructured/default.nix index 3b797ed297d70..3a040b664a962 100644 --- a/pkgs/development/python-modules/unstructured/default.nix +++ b/pkgs/development/python-modules/unstructured/default.nix @@ -1,62 +1,63 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -# propagated build inputs -, chardet -, filetype -, lxml -, msg-parser -, nltk -, openpyxl -, pandas -, pdf2image -, pdfminer-six -, pillow -, pypandoc -, python-docx -, python-pptx -, python-magic -, markdown -, requests -, tabulate -, xlrd -# optional-dependencies -, langdetect -, sacremoses -, sentencepiece -, torch -, transformers -, unstructured-inference -, s3fs -, fsspec -, adlfs -# , discord-py -, pygithub -, python-gitlab -, praw -, slack-sdk -, wikipedia -, google-api-python-client -# , gcsfs -, elasticsearch8 -, jq -# , dropboxdrivefs -, atlassian-python-api -# test dependencies -, pytestCheckHook -, black -, coverage -, click -, freezegun -# , label-studio-sdk -, mypy -, pytest-cov -, pytest-mock -, vcrpy -, grpcio +{ + lib, + buildPythonPackage, + fetchFromGitHub, + # propagated build inputs + chardet, + filetype, + lxml, + msg-parser, + nltk, + openpyxl, + pandas, + pdf2image, + pdfminer-six, + pillow, + pypandoc, + python-docx, + python-pptx, + python-magic, + markdown, + requests, + tabulate, + xlrd, + # optional-dependencies + langdetect, + sacremoses, + sentencepiece, + torch, + transformers, + unstructured-inference, + s3fs, + fsspec, + adlfs, + # , discord-py + pygithub, + python-gitlab, + praw, + slack-sdk, + wikipedia, + google-api-python-client, + # , gcsfs + elasticsearch8, + jq, + # , dropboxdrivefs + atlassian-python-api, + # test dependencies + pytestCheckHook, + black, + coverage, + click, + freezegun, + # , label-studio-sdk + mypy, + pytest-cov, + pytest-mock, + vcrpy, + grpcio, }: let - version = "0.13.2"; + version = "0.14.3"; optional-dependencies = { huggingflace = [ langdetect @@ -66,8 +67,14 @@ let transformers ]; local-inference = [ unstructured-inference ]; - s3 = [ s3fs fsspec ]; - azure = [ adlfs fsspec ]; + s3 = [ + s3fs + fsspec + ]; + azure = [ + adlfs + fsspec + ]; discord = [ ]; # discord-py github = [ pygithub ]; gitlab = [ python-gitlab ]; @@ -75,9 +82,12 @@ let slack = [ slack-sdk ]; wikipedia = [ wikipedia ]; google-drive = [ google-api-python-client ]; - gcs = []; # gcsfs fsspec - elasticsearch = [ elasticsearch8 jq ]; - dropbox = []; # dropboxdrivefs fsspec + gcs = [ ]; # gcsfs fsspec + elasticsearch = [ + elasticsearch8 + jq + ]; + dropbox = [ ]; # dropboxdrivefs fsspec confluence = [ atlassian-python-api ]; }; in @@ -90,7 +100,7 @@ buildPythonPackage { owner = "Unstructured-IO"; repo = "unstructured"; rev = "refs/tags/${version}"; - hash = "sha256-6pR/tewHWstgIqqD8Jwj+AQutdhXU5aufm6RiEpXr9s="; + hash = "sha256-s+f3nCSuY/FhjNDnIaCj13WSp7Y7DqYwAJYfTxwH1Cc="; }; propagatedBuildInputs = [ |