c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
44 lines
918 B
Nix
44 lines
918 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, setuptools
|
|
, wheel
|
|
, packaging
|
|
, primepy
|
|
, torch
|
|
, torchaudio
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "torch-pitch-shift";
|
|
version = "1.2.4";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "KentoNishi";
|
|
repo = "torch-pitch-shift";
|
|
rev = "v${version}";
|
|
hash = "sha256-s3z+6jOGC7RfF9TzVZ9HFbIFz2BsBm6Yhx7lgaEKv6o=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
wheel
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
packaging
|
|
primepy
|
|
torch
|
|
torchaudio
|
|
];
|
|
|
|
pythonImportsCheck = [ "torch_pitch_shift" ];
|
|
|
|
meta = with lib; {
|
|
description = "Pitch-shift audio clips quickly with PyTorch (CUDA supported)! Additional utilities for searching efficient transformations are included";
|
|
homepage = "https://github.com/KentoNishi/torch-pitch-shift";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ matthewcroughan ];
|
|
};
|
|
}
|