about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyannote-pipeline/default.nix
blob: 0b85c50474d5802a7c7d200634f5073c569d0f56 (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
{
  lib,
  buildPythonPackage,
  docopt,
  fetchFromGitHub,
  filelock,
  optuna,
  pyannote-core,
  pyannote-database,
  pyyaml,
  scikit-learn,
  setuptools,
  tqdm,
  versioneer,
}:

buildPythonPackage rec {
  pname = "pyannote-pipeline";
  version = "3.0.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "pyannote";
    repo = "pyannote-pipeline";
    rev = "refs/tags/${version}";
    hash = "sha256-0wSgy6kbKi9Wa5dimOz34IV5/8fSwaHDMUpaBW7tm2Y=";
  };

  postPatch = ''
    # Remove vendorized versioeer.py
    rm versioneer.py
  '';

  build-system = [
    setuptools
    versioneer
  ];

  dependencies = [
    pyannote-core
    pyannote-database
    pyyaml
    optuna
    tqdm
    docopt
    filelock
    scikit-learn
  ];

  pythonImportsCheck = [ "pyannote.pipeline" ];

  meta = with lib; {
    description = "Tunable pipelines";
    homepage = "https://github.com/pyannote/pyannote-pipeline";
    license = licenses.mit;
    maintainers = with maintainers; [ ];
    mainProgram = "pyannote-pipeline";
  };
}