blob: ba1bca74786585d85518343e2ef49896ecf14543 (
plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
decorator,
numpy,
scipy,
matplotlib,
pytestCheckHook,
pytest-cov-stub,
pytest-mpl,
}:
buildPythonPackage rec {
pname = "mir-eval";
version = "0.8.2";
pyproject = true;
src = fetchFromGitHub {
owner = "mir-evaluation";
repo = "mir_eval";
tag = version;
hash = "sha256-Dq/kqoTY8YGATsr6MSgfQxkWvFpmH/Pf1pKBLPApylY=";
};
build-system = [ setuptools ];
dependencies = [
decorator
numpy
scipy
];
optional-dependencies.display = [ matplotlib ];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
pytest-mpl
]
++ lib.concatAttrValues optional-dependencies;
preCheck = ''
pushd tests
'';
postCheck = ''
popd
'';
pythonImportsCheck = [ "mir_eval" ];
meta = {
description = "Common metrics for common audio/music processing tasks";
homepage = "https://github.com/craffel/mir_eval";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ carlthome ];
};
}
|