1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 wheel, 7 packaging, 8 primepy, 9 torch, 10 torchaudio, 11}: 12 13buildPythonPackage rec { 14 pname = "torch-pitch-shift"; 15 version = "1.2.4"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "KentoNishi"; 20 repo = "torch-pitch-shift"; 21 rev = "v${version}"; 22 hash = "sha256-s3z+6jOGC7RfF9TzVZ9HFbIFz2BsBm6Yhx7lgaEKv6o="; 23 }; 24 25 nativeBuildInputs = [ 26 setuptools 27 wheel 28 ]; 29 30 propagatedBuildInputs = [ 31 packaging 32 primepy 33 torch 34 torchaudio 35 ]; 36 37 pythonImportsCheck = [ "torch_pitch_shift" ]; 38 39 meta = with lib; { 40 description = "Pitch-shift audio clips quickly with PyTorch (CUDA supported)! Additional utilities for searching efficient transformations are included"; 41 homepage = "https://github.com/KentoNishi/torch-pitch-shift"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ matthewcroughan ]; 44 }; 45}