at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 librosa, 6 pytestCheckHook, 7 pythonOlder, 8 resampy, 9 scipy, 10 setuptools, 11 torch, 12 torchaudio, 13 tqdm, 14}: 15 16buildPythonPackage { 17 pname = "torchcrepe"; 18 version = "0.0.24"; 19 pyproject = true; 20 build-system = [ setuptools ]; 21 22 disabled = pythonOlder "3.7"; 23 24 src = fetchFromGitHub { 25 owner = "maxrmorrison"; 26 repo = "torchcrepe"; 27 # No releases: https://github.com/maxrmorrison/torchcrepe/commit/19e2ec3d494c0797a5ff2a11408ec5838fba6681 28 rev = "19e2ec3d494c0797a5ff2a11408ec5838fba6681"; 29 hash = "sha256-w2T8D3ATCHVBCBhMdLSYdV0yb9vUYwZLz+B2X2gteEU="; 30 }; 31 32 dependencies = [ 33 librosa 34 resampy 35 scipy 36 torch 37 torchaudio 38 tqdm 39 ]; 40 41 nativeCheckInputs = [ pytestCheckHook ]; 42 43 pythonImportsCheck = [ "torchcrepe" ]; 44 45 meta = { 46 description = "Pytorch implementation of the CREPE pitch tracker"; 47 homepage = "https://github.com/maxrmorrison/torchcrepe"; 48 license = lib.licenses.mit; 49 maintainers = with lib.maintainers; [ derdennisop ]; 50 }; 51}