Commit b7a125d6 authored by Sarah Clark's avatar Sarah Clark
Browse files

python3Packages.unstructured-inference: migrate to finalAttrs

parent cb1263d0
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@
  pdf2image,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "unstructured-inference";
  version = "1.1.7";
  pyproject = true;
@@ -31,7 +31,7 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "Unstructured-IO";
    repo = "unstructured-inference";
    tag = version;
    tag = finalAttrs.version;
    hash = "sha256-RY+acfyAGP2r8axfifQkTSkbwkrZ0u6KvFwds24IkMc=";
  };

@@ -101,7 +101,7 @@ buildPythonPackage rec {
  meta = {
    description = "Hosted model inference code for layout parsing models";
    homepage = "https://github.com/Unstructured-IO/unstructured-inference";
    changelog = "https://github.com/Unstructured-IO/unstructured-inference/blob/${src.tag}/CHANGELOG.md";
    changelog = "https://github.com/Unstructured-IO/unstructured-inference/blob/${finalAttrs.src.tag}/CHANGELOG.md";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ happysalada ];
    platforms = [
@@ -110,4 +110,4 @@ buildPythonPackage rec {
      "aarch64-darwin"
    ];
  };
}
})