nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 47 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 packaging, 7 primepy, 8 torch, 9 torchaudio, 10}: 11 12buildPythonPackage rec { 13 pname = "torch-pitch-shift"; 14 version = "1.2.5"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "KentoNishi"; 19 repo = "torch-pitch-shift"; 20 tag = "v${version}"; 21 hash = "sha256-QuDz9IpmBdzfMjwAuG2Ln0x2OL/w3RVd/EfO4Ws78dw="; 22 }; 23 24 pythonRelaxDeps = [ "torchaudio" ]; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ 29 packaging 30 primepy 31 torch 32 torchaudio 33 ]; 34 35 # Module has no tests 36 doCheck = false; 37 38 pythonImportsCheck = [ "torch_pitch_shift" ]; 39 40 meta = { 41 description = "Pitch-shift audio clips quickly with PyTorch (CUDA supported)! Additional utilities for searching efficient transformations are included"; 42 homepage = "https://github.com/KentoNishi/torch-pitch-shift"; 43 changelog = "https://github.com/KentoNishi/torch-pitch-shift/releases/tag/v${version}"; 44 license = lib.licenses.mit; 45 maintainers = with lib.maintainers; [ matthewcroughan ]; 46 }; 47}