depot/third_party/nixpkgs/pkgs/development/python-modules/torch-audiomentations/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

46 lines
945 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, wheel
, julius
, librosa
, torch
, torchaudio
, torch-pitch-shift
}:
buildPythonPackage rec {
pname = "torch-audiomentations";
version = "0.11.1";
pyproject = true;
src = fetchFromGitHub {
owner = "asteroid-team";
repo = "torch-audiomentations";
rev = "refs/tags/v${version}";
hash = "sha256-0+5wc+mP4c221q6mdaqPalfumTOtdnkjnIPtLErOp9E=";
};
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 ];
};
}