Loading pkgs/development/python-modules/mlcroissant/default.nix +8 −7 Original line number Diff line number Diff line Loading @@ -29,19 +29,20 @@ writableTmpDirAsHomeHook, }: buildPythonPackage rec { buildPythonPackage (finalAttrs: { pname = "mlcroissant"; version = "1.0.22"; version = "1.1.0"; pyproject = true; __structuredAttrs = true; src = fetchFromGitHub { owner = "mlcommons"; repo = "croissant"; tag = "v${version}"; hash = "sha256-uJOxKNrK3eN2wyPFEQr2J4+vZeSK1KPyFDag2jcyWZw="; tag = "v${finalAttrs.version}"; hash = "sha256-IaRlmNQjOSIT3/b6AM68eRmweZEI5yjo6I9ievQIIsE="; }; sourceRoot = "${src.name}/python/mlcroissant"; sourceRoot = "${finalAttrs.src.name}/python/mlcroissant"; build-system = [ setuptools Loading Loading @@ -91,10 +92,10 @@ buildPythonPackage rec { meta = { description = "High-level format for machine learning datasets that brings together four rich layers"; homepage = "https://github.com/mlcommons/croissant"; changelog = "https://github.com/mlcommons/croissant/releases/tag/${src.tag}"; changelog = "https://github.com/mlcommons/croissant/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ GaetanLepage ]; platforms = lib.platforms.all; mainProgram = "mlcroissant"; }; } }) pkgs/development/python-modules/tensorflow-datasets/default.nix +10 −0 Original line number Diff line number Diff line Loading @@ -93,6 +93,16 @@ buildPythonPackage (finalAttrs: { "elif field.label == field.LABEL_REPEATED:" \ "elif hasattr(field_value, 'extend'):" '' # mlcroissant 1.1.0 requires leaf fields to define `source` or `value` + '' substituteInPlace tensorflow_datasets/core/utils/croissant_utils_test.py \ --replace-fail \ "references=mlc.Source(field='splits/name')," \ "references=mlc.Source(field='splits/name'), source=mlc.Source(field='splits/name')," \ --replace-fail \ "references=mlc.Source(field='labels/label')," \ "references=mlc.Source(field='labels/label'), source=mlc.Source(field='labels/label')," '' # TypeError: only 0-dimensional arrays can be converted to Python scalars + '' substituteInPlace tensorflow_datasets/datasets/smallnorb/smallnorb_dataset_builder.py \ Loading Loading
pkgs/development/python-modules/mlcroissant/default.nix +8 −7 Original line number Diff line number Diff line Loading @@ -29,19 +29,20 @@ writableTmpDirAsHomeHook, }: buildPythonPackage rec { buildPythonPackage (finalAttrs: { pname = "mlcroissant"; version = "1.0.22"; version = "1.1.0"; pyproject = true; __structuredAttrs = true; src = fetchFromGitHub { owner = "mlcommons"; repo = "croissant"; tag = "v${version}"; hash = "sha256-uJOxKNrK3eN2wyPFEQr2J4+vZeSK1KPyFDag2jcyWZw="; tag = "v${finalAttrs.version}"; hash = "sha256-IaRlmNQjOSIT3/b6AM68eRmweZEI5yjo6I9ievQIIsE="; }; sourceRoot = "${src.name}/python/mlcroissant"; sourceRoot = "${finalAttrs.src.name}/python/mlcroissant"; build-system = [ setuptools Loading Loading @@ -91,10 +92,10 @@ buildPythonPackage rec { meta = { description = "High-level format for machine learning datasets that brings together four rich layers"; homepage = "https://github.com/mlcommons/croissant"; changelog = "https://github.com/mlcommons/croissant/releases/tag/${src.tag}"; changelog = "https://github.com/mlcommons/croissant/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ GaetanLepage ]; platforms = lib.platforms.all; mainProgram = "mlcroissant"; }; } })
pkgs/development/python-modules/tensorflow-datasets/default.nix +10 −0 Original line number Diff line number Diff line Loading @@ -93,6 +93,16 @@ buildPythonPackage (finalAttrs: { "elif field.label == field.LABEL_REPEATED:" \ "elif hasattr(field_value, 'extend'):" '' # mlcroissant 1.1.0 requires leaf fields to define `source` or `value` + '' substituteInPlace tensorflow_datasets/core/utils/croissant_utils_test.py \ --replace-fail \ "references=mlc.Source(field='splits/name')," \ "references=mlc.Source(field='splits/name'), source=mlc.Source(field='splits/name')," \ --replace-fail \ "references=mlc.Source(field='labels/label')," \ "references=mlc.Source(field='labels/label'), source=mlc.Source(field='labels/label')," '' # TypeError: only 0-dimensional arrays can be converted to Python scalars + '' substituteInPlace tensorflow_datasets/datasets/smallnorb/smallnorb_dataset_builder.py \ Loading