1{ 2 lib, 3 buildPythonPackage, 4 docopt, 5 fetchFromGitHub, 6 matplotlib, 7 numpy, 8 pandas, 9 pyannote-core, 10 pyannote-database, 11 pythonOlder, 12 scikit-learn, 13 scipy, 14 setuptools, 15 sympy, 16 tabulate, 17 versioneer, 18}: 19 20buildPythonPackage rec { 21 pname = "pyannote-metrics"; 22 version = "3.3.0"; 23 pyproject = true; 24 25 disabled = pythonOlder "3.8"; 26 27 src = fetchFromGitHub { 28 owner = "pyannote"; 29 repo = "pyannote-metrics"; 30 tag = version; 31 hash = "sha256-tinNdFiUISnzUDnzM8wT3+0W8Dlc9gbCiNoIMo9xNKY="; 32 }; 33 34 postPatch = '' 35 # Remove vendorized versioneer.py 36 rm versioneer.py 37 ''; 38 39 build-system = [ 40 setuptools 41 versioneer 42 ]; 43 44 dependencies = [ 45 pyannote-core 46 pyannote-database 47 pandas 48 scipy 49 scikit-learn 50 docopt 51 tabulate 52 matplotlib 53 sympy 54 numpy 55 ]; 56 57 pythonImportsCheck = [ "pyannote.metrics" ]; 58 59 meta = with lib; { 60 description = "Toolkit for reproducible evaluation, diagnostic, and error analysis of speaker diarization systems"; 61 homepage = "https://github.com/pyannote/pyannote-metrics"; 62 changelog = "http://pyannote.github.io/pyannote-metrics/changelog.html"; 63 license = licenses.mit; 64 maintainers = [ ]; 65 mainProgram = "pyannote-metrics"; 66 }; 67}