python3Packages.torch-pitch-shift: init at 1.2.4
This commit is contained in:
parent
acfe7eeb33
commit
63917a6f98
2 changed files with 46 additions and 0 deletions
|
@ -0,0 +1,44 @@
|
|||
{ 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 ];
|
||||
};
|
||||
}
|
|
@ -14638,6 +14638,8 @@ self: super: with self; {
|
|||
inherit (pkgs.darwin) libobjc;
|
||||
};
|
||||
|
||||
torch-pitch-shift = callPackage ../development/python-modules/torch-pitch-shift { };
|
||||
|
||||
torch-bin = callPackage ../development/python-modules/torch/bin.nix {
|
||||
openai-triton = self.openai-triton-bin;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue