2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
docopt,
|
|
|
|
fetchFromGitHub,
|
|
|
|
matplotlib,
|
|
|
|
numpy,
|
|
|
|
pandas,
|
|
|
|
pyannote-core,
|
|
|
|
pyannote-database,
|
|
|
|
pythonOlder,
|
|
|
|
scikit-learn,
|
|
|
|
scipy,
|
|
|
|
setuptools,
|
|
|
|
sympy,
|
|
|
|
tabulate,
|
|
|
|
versioneer,
|
2024-02-29 20:09:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyannote-metrics";
|
|
|
|
version = "3.2.1";
|
|
|
|
pyproject = true;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pyannote";
|
|
|
|
repo = "pyannote-metrics";
|
2024-06-05 15:53:02 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-V4qyaCaFsoikfFILm2sccf6m7lqJSDTdLxS1sr/LXAY=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
postPatch = ''
|
|
|
|
# Remove vendorized versioneer.py
|
|
|
|
rm versioneer.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
versioneer
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
2024-02-29 20:09:43 +00:00
|
|
|
pyannote-core
|
|
|
|
pyannote-database
|
|
|
|
pandas
|
|
|
|
scipy
|
|
|
|
scikit-learn
|
|
|
|
docopt
|
|
|
|
tabulate
|
|
|
|
matplotlib
|
|
|
|
sympy
|
|
|
|
numpy
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pyannote.metrics" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Toolkit for reproducible evaluation, diagnostic, and error analysis of speaker diarization systems";
|
2024-02-29 20:09:43 +00:00
|
|
|
homepage = "https://github.com/pyannote/pyannote-metrics";
|
2024-06-05 15:53:02 +00:00
|
|
|
changelog = "http://pyannote.github.io/pyannote-metrics/changelog.html";
|
2024-02-29 20:09:43 +00:00
|
|
|
license = licenses.mit;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2024-06-05 15:53:02 +00:00
|
|
|
mainProgram = "pyannote-metrics";
|
2024-02-29 20:09:43 +00:00
|
|
|
};
|
|
|
|
}
|