python312Packages.torch-pitch-shift: refactor

- fix build
This commit is contained in:
Fabian Affolter
2024-08-17 12:35:04 +02:00
parent 02a8f81ccb
commit 6a4715fd1a
@@ -3,11 +3,11 @@
buildPythonPackage,
fetchFromGitHub,
setuptools,
wheel,
packaging,
primepy,
torch,
torchaudio,
pythonOlder,
}:
buildPythonPackage rec {
@@ -15,30 +15,35 @@ buildPythonPackage rec {
version = "1.2.4";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "KentoNishi";
repo = "torch-pitch-shift";
rev = "v${version}";
rev = "refs/tags/v${version}";
hash = "sha256-s3z+6jOGC7RfF9TzVZ9HFbIFz2BsBm6Yhx7lgaEKv6o=";
};
nativeBuildInputs = [
setuptools
wheel
];
pythonRelaxDeps = [ "torchaudio" ];
propagatedBuildInputs = [
build-system = [ setuptools ];
dependencies = [
packaging
primepy
torch
torchaudio
];
# Module has no tests
doCheck = false;
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";
changelog = "https://github.com/KentoNishi/torch-pitch-shift/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ matthewcroughan ];
};