blob: 7872ba143028eb6401250dceaa9d417fde09d536 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
librosa,
resampy,
scipy,
torch,
torchaudio,
torchcodec,
tqdm,
# tests
pytestCheckHook,
}:
buildPythonPackage {
pname = "torchcrepe";
version = "0.0.24";
pyproject = true;
src = fetchFromGitHub {
owner = "maxrmorrison";
repo = "torchcrepe";
# No releases: https://github.com/maxrmorrison/torchcrepe/commit/19e2ec3d494c0797a5ff2a11408ec5838fba6681
rev = "19e2ec3d494c0797a5ff2a11408ec5838fba6681";
hash = "sha256-w2T8D3ATCHVBCBhMdLSYdV0yb9vUYwZLz+B2X2gteEU=";
};
build-system = [ setuptools ];
dependencies = [
librosa
resampy
scipy
torch
torchaudio
torchcodec
tqdm
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "torchcrepe" ];
meta = {
description = "Pytorch implementation of the CREPE pitch tracker";
homepage = "https://github.com/maxrmorrison/torchcrepe";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ derdennisop ];
};
}
|