about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyannote-core/default.nix
blob: 453bb0c4d60de8d0cf7720989ae114a1e6ffa161 (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, wheel
, sortedcontainers
, numpy
, scipy
, typing-extensions
}:

buildPythonPackage rec {
  pname = "pyannote-core";
  version = "5.0.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "pyannote";
    repo = "pyannote-core";
    rev = version;
    hash = "sha256-XQVEMy60LkfFr2TKXTeg6cGHRx5BUZ5qDgzIdKy/19Y=";
  };

  propagatedBuildInputs = [
    sortedcontainers
    numpy
    scipy
    typing-extensions
  ];

  nativeBuildInputs = [
    setuptools
    wheel
  ];

  pythonImportsCheck = [ "pyannote.core" ];

  meta = with lib; {
    description = "Advanced data structures for handling temporal segments with attached labels";
    homepage = "https://github.com/pyannote/pyannote-core";
    license = licenses.mit;
    maintainers = with maintainers; [ ];
  };
}