From 23521c9e62c0fee90f6841d6dcd5dd629994a2f5 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 22 Nov 2025 21:34:43 +0000 Subject: [PATCH 1/3] python3Packages.unstructured-inference: 1.1.1 -> 1.1.2 --- .../python-modules/unstructured-inference/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/unstructured-inference/default.nix b/pkgs/development/python-modules/unstructured-inference/default.nix index 68a38bc70197..3fa690c52872 100644 --- a/pkgs/development/python-modules/unstructured-inference/default.nix +++ b/pkgs/development/python-modules/unstructured-inference/default.nix @@ -23,14 +23,14 @@ buildPythonPackage rec { pname = "unstructured-inference"; - version = "1.1.1"; + version = "1.1.2"; format = "setuptools"; src = fetchFromGitHub { owner = "Unstructured-IO"; repo = "unstructured-inference"; tag = version; - hash = "sha256-yCLiZe7oSs63dSgN8tijpL2MOygyTmK+6TsC87sHAUQ="; + hash = "sha256-XoGjcF9xxqZ1fEtI+ifjwEqxNlDHdakZLo8xzFKK8ic="; }; propagatedBuildInputs = [ From 30e1ee47adf88e14c12b4fe2d71290d63afb19b2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 23 Nov 2025 00:05:45 +0100 Subject: [PATCH 2/3] python313Packages.unstructured-inference: modernize --- .../python-modules/unstructured-inference/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/unstructured-inference/default.nix b/pkgs/development/python-modules/unstructured-inference/default.nix index 3fa690c52872..1cf9f989ca2b 100644 --- a/pkgs/development/python-modules/unstructured-inference/default.nix +++ b/pkgs/development/python-modules/unstructured-inference/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + setuptools, # runtime dependencies layoutparser, python-multipart, @@ -24,7 +25,7 @@ buildPythonPackage rec { pname = "unstructured-inference"; version = "1.1.2"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "Unstructured-IO"; @@ -33,7 +34,9 @@ buildPythonPackage rec { hash = "sha256-XoGjcF9xxqZ1fEtI+ifjwEqxNlDHdakZLo8xzFKK8ic="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ layoutparser python-multipart huggingface-hub From 687fe1237a8aa494d493a570d8de9618f3f7f155 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 23 Nov 2025 00:22:43 +0100 Subject: [PATCH 3/3] python313Packages.unstructured-inference: add additional inputs --- .../unstructured-inference/default.nix | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/unstructured-inference/default.nix b/pkgs/development/python-modules/unstructured-inference/default.nix index 1cf9f989ca2b..3192eb3132e5 100644 --- a/pkgs/development/python-modules/unstructured-inference/default.nix +++ b/pkgs/development/python-modules/unstructured-inference/default.nix @@ -4,14 +4,17 @@ fetchFromGitHub, setuptools, # runtime dependencies - layoutparser, - python-multipart, - huggingface-hub, - opencv-python, - onnxruntime, - transformers, + accelerate, detectron2, + huggingface-hub, + layoutparser, + onnx, + onnxruntime, + opencv-python, paddleocr, + python-multipart, + rapidfuzz, + transformers, # check inputs pytestCheckHook, coverage, @@ -37,11 +40,14 @@ buildPythonPackage rec { build-system = [ setuptools ]; dependencies = [ - layoutparser - python-multipart + accelerate huggingface-hub - opencv-python + layoutparser + onnx onnxruntime + opencv-python + python-multipart + rapidfuzz transformers # detectron2 # fails to build # paddleocr # 3.12 not yet supported