2024-02-29 20:09:43 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, setuptools
|
|
|
|
, wheel
|
|
|
|
, julius
|
|
|
|
, librosa
|
|
|
|
, torch
|
|
|
|
, torchaudio
|
|
|
|
, torch-pitch-shift
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "torch-audiomentations";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.11.1";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "asteroid-team";
|
|
|
|
repo = "torch-audiomentations";
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-0+5wc+mP4c221q6mdaqPalfumTOtdnkjnIPtLErOp9E=";
|
2024-02-29 20:09:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
julius
|
|
|
|
librosa
|
|
|
|
torch
|
|
|
|
torchaudio
|
|
|
|
torch-pitch-shift
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "torch_audiomentations" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Fast audio data augmentation in PyTorch. Inspired by audiomentations. Useful for deep learning";
|
|
|
|
homepage = "https://github.com/asteroid-team/torch-audiomentations";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ matthewcroughan ];
|
|
|
|
};
|
|
|
|
}
|