2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
packaging,
|
|
|
|
primepy,
|
|
|
|
torch,
|
|
|
|
torchaudio,
|
2024-09-19 14:19:46 +00:00
|
|
|
pythonOlder,
|
2024-02-29 20:09:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "torch-pitch-shift";
|
|
|
|
version = "1.2.4";
|
|
|
|
pyproject = true;
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KentoNishi";
|
|
|
|
repo = "torch-pitch-shift";
|
2024-09-19 14:19:46 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-s3z+6jOGC7RfF9TzVZ9HFbIFz2BsBm6Yhx7lgaEKv6o=";
|
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
pythonRelaxDeps = [ "torchaudio" ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2024-02-29 20:09:43 +00:00
|
|
|
packaging
|
|
|
|
primepy
|
|
|
|
torch
|
|
|
|
torchaudio
|
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
# Module has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
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";
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://github.com/KentoNishi/torch-pitch-shift/releases/tag/v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ matthewcroughan ];
|
|
|
|
};
|
|
|
|
}
|