nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 hatch-vcs,
8 hatchling,
9
10 # dependencies
11 numpy,
12 pandas,
13 sortedcontainers,
14
15 pytestCheckHook,
16}:
17
18buildPythonPackage rec {
19 pname = "pyannote-core";
20 version = "6.0.1";
21 pyproject = true;
22
23 src = fetchFromGitHub {
24 owner = "pyannote";
25 repo = "pyannote-core";
26 tag = version;
27 hash = "sha256-r5NkOAzrQGcb6LPi4/DA0uT9R0ELiYuwQkbT1l6R8Mw=";
28 };
29
30 build-system = [
31 hatch-vcs
32 hatchling
33 ];
34
35 dependencies = [
36 numpy
37 pandas
38 sortedcontainers
39 ];
40
41 nativeCheckInputs = [
42 pytestCheckHook
43 ];
44
45 pythonImportsCheck = [ "pyannote.core" ];
46
47 meta = {
48 description = "Advanced data structures for handling temporal segments with attached labels";
49 homepage = "https://github.com/pyannote/pyannote-core";
50 changelog = "https://github.com/pyannote/pyannote-core/releases/tag/${version}";
51 license = lib.licenses.mit;
52 maintainers = [ ];
53 };
54}