python312Packages.osmnx: 1.9.3 → 2.0.0 (#360529)
[NixPkgs.git] / pkgs / development / python-modules / pyannote-metrics / default.nix
blobe8455f4d19b6c99c6e4cf4e0394e8bf2ef5173d7
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,
20 buildPythonPackage rec {
21   pname = "pyannote-metrics";
22   version = "3.2.1";
23   pyproject = true;
25   disabled = pythonOlder "3.8";
27   src = fetchFromGitHub {
28     owner = "pyannote";
29     repo = "pyannote-metrics";
30     rev = "refs/tags/${version}";
31     hash = "sha256-V4qyaCaFsoikfFILm2sccf6m7lqJSDTdLxS1sr/LXAY=";
32   };
34   postPatch = ''
35     # Remove vendorized versioneer.py
36     rm versioneer.py
37   '';
39   build-system = [
40     setuptools
41     versioneer
42   ];
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   ];
57   pythonImportsCheck = [ "pyannote.metrics" ];
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   };