Unverified Commit 6f3ec147 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

python312Packages.cleanvision: init at 0.3.6; python312Packages.cleanlab: add...

python312Packages.cleanvision: init at 0.3.6; python312Packages.cleanlab: add missing dependency cleanvision (#344816)
parents 1174fd66 cfa33858
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@
  pandas,

  # test dependencies
  cleanvision,
  datasets,
  fasttext,
  hypothesis,
@@ -58,6 +59,7 @@ buildPythonPackage rec {
  doCheck = true;

  nativeCheckInputs = [
    cleanvision
    datasets
    fasttext
    hypothesis
+79 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  setuptools,

  # dependencies
  fsspec,
  imagehash,
  matplotlib,
  numpy,
  pandas,
  pillow,
  tabulate,
  tqdm,

  # tests
  datasets,
  psutil,
  pytestCheckHook,
  torchvision,
}:

buildPythonPackage rec {
  pname = "cleanvision";
  version = "0.3.6";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "cleanlab";
    repo = "cleanvision";
    rev = "refs/tags/v${version}";
    hash = "sha256-QAydDqLJx/jYKXqxRUElTdM5dOFA6nZag8rNAjPZjRg=";
  };

  build-system = [ setuptools ];

  dependencies = [
    fsspec
    imagehash
    matplotlib
    numpy
    pandas
    pillow
    tabulate
    tqdm
  ];

  pythonImportsCheck = [ "cleanvision" ];

  nativeCheckInputs = [
    datasets
    psutil
    pytestCheckHook
    torchvision
  ];

  preCheck = ''
    export HOME=$(mktemp -d)
  '';

  disabledTests = [
    # Requires accessing s3 (online)
    "test_s3_dataset"
  ];

  meta = {
    description = "Automatically find issues in image datasets and practice data-centric computer vision";
    homepage = "https://github.com/cleanlab/cleanvision";
    changelog = "https://github.com/cleanlab/cleanvision/releases/tag/v${version}";
    license = lib.licenses.agpl3Only;
    maintainers = with lib.maintainers; [ GaetanLepage ];
    # Fatal Python error: Aborted
    broken = stdenv.isDarwin;
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -2282,6 +2282,8 @@ self: super: with self; {
  cleanlab = callPackage ../development/python-modules/cleanlab { };
  cleanvision = callPackage ../development/python-modules/cleanvision { };
  cleo = callPackage ../development/python-modules/cleo { };
  clevercsv = callPackage ../development/python-modules/clevercsv { };