1{
2 lib,
3 buildPythonPackage,
4 docopt,
5 fetchFromGitHub,
6 filelock,
7 optuna,
8 pyannote-core,
9 pyannote-database,
10 pyyaml,
11 scikit-learn,
12 setuptools,
13 tqdm,
14 versioneer,
15}:
16
17buildPythonPackage rec {
18 pname = "pyannote-pipeline";
19 version = "3.1.2";
20 pyproject = true;
21
22 src = fetchFromGitHub {
23 owner = "pyannote";
24 repo = "pyannote-pipeline";
25 tag = version;
26 hash = "sha256-MMMwZMxu8viUt2DgCgymbz2vEMM9TT0ySKL2KPzAPLA=";
27 };
28
29 postPatch = ''
30 # Remove vendorized versioeer.py
31 rm versioneer.py
32 '';
33
34 build-system = [
35 setuptools
36 versioneer
37 ];
38
39 dependencies = [
40 pyannote-core
41 pyannote-database
42 pyyaml
43 optuna
44 tqdm
45 docopt
46 filelock
47 scikit-learn
48 ];
49
50 pythonImportsCheck = [ "pyannote.pipeline" ];
51
52 meta = with lib; {
53 description = "Tunable pipelines";
54 homepage = "https://github.com/pyannote/pyannote-pipeline";
55 license = licenses.mit;
56 maintainers = [ ];
57 mainProgram = "pyannote-pipeline";
58 };
59}