about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/cleanlab/default.nix
blob: 0ac79e306c17e53e7b11ef52dcfb7b2b0b4cdfff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, scikit-learn
, termcolor
, tqdm
, pandas
# test dependencies
, tensorflow
, torch
, datasets
, torchvision
, keras
, fasttext
}:
let
  pname = "cleanlab";
  version = "2.4.0";
in
buildPythonPackage {
  inherit pname version;
  format = "setuptools";

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "cleanlab";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-XFrjjBJA0OQEAspnQQiSIW4td0USJDXTp9C/91mobp8=";
  };

  # postPatch = ''
  #   substituteInPlace pyproject.toml \
  #     --replace '"rich <= 13.0.1"' '"rich"' \
  #     --replace '"numpy < 1.24.0"' '"numpy"'
  # '';

  propagatedBuildInputs = [
    scikit-learn
    termcolor
    tqdm
    pandas
  ];

  nativeCheckInputs = [
    tensorflow
    torch
    datasets
    torchvision
    keras
    fasttext
  ];

  meta = with lib; {
    description = "The standard data-centric AI package for data quality and machine learning with messy, real-world data and labels.";
    homepage = "https://github.com/cleanlab/cleanlab";
    changelog = "https://github.com/cleanlab/cleanlab/releases/tag/v${version}";
    license = licenses.agpl3Only;
    maintainers = with maintainers; [ happysalada ];
  };
}