python312Packages.flask-allowed-hosts: 1.1.2 -> 1.2.0 (#361132)
[NixPkgs.git] / pkgs / development / python-modules / pyannote-core / default.nix
blobd9ce9b18db99d7d83310f3e106051dc1315312b7
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   numpy,
6   pandas,
7   pytestCheckHook,
8   scipy,
9   setuptools,
10   sortedcontainers,
11   typing-extensions,
12   versioneer,
15 buildPythonPackage rec {
16   pname = "pyannote-core";
17   version = "5.0.0";
18   pyproject = true;
20   src = fetchFromGitHub {
21     owner = "pyannote";
22     repo = "pyannote-core";
23     rev = "refs/tags/${version}";
24     hash = "sha256-XQVEMy60LkfFr2TKXTeg6cGHRx5BUZ5qDgzIdKy/19Y=";
25   };
27   postPatch = ''
28     # Remove vendorized versioneer.py
29     rm versioneer.py
30   '';
32   build-system = [
33     setuptools
34     versioneer
35   ];
37   dependencies = [
38     sortedcontainers
39     numpy
40     scipy
41     typing-extensions
42   ];
44   nativeCheckInputs = [
45     pandas
46     pytestCheckHook
47   ];
49   pythonImportsCheck = [ "pyannote.core" ];
51   meta = with lib; {
52     description = "Advanced data structures for handling temporal segments with attached labels";
53     homepage = "https://github.com/pyannote/pyannote-core";
54     changelog = "https://github.com/pyannote/pyannote-core/releases/tag/${version}";
55     license = licenses.mit;
56     maintainers = [ ];
57   };