depot/third_party/nixpkgs/pkgs/development/python-modules/torch-pitch-shift/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

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 ];
};
}