python3Packages.torchcrepe: init at 0.0.23

This commit is contained in:
Dennis Wuitz
2024-08-07 14:16:08 +02:00
parent c8a944b724
commit cf08c19098
2 changed files with 53 additions and 0 deletions
@@ -0,0 +1,51 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
librosa,
pytestCheckHook,
pythonOlder,
resampy,
scipy,
setuptools,
torch,
torchaudio,
tqdm,
}:
buildPythonPackage {
pname = "torchcrepe";
version = "0.0.23";
pyproject = true;
build-system = [ setuptools ];
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "maxrmorrison";
repo = "torchcrepe";
# No releases: https://github.com/maxrmorrison/torchcrepe/commit/e2c305878ec7a89aec85a01f8d223a75a36d30b6
rev = "e2c305878ec7a89aec85a01f8d223a75a36d30b6";
hash = "sha256-fhBU5KFDNDG4g4KNivE/dRpMPyu1QNa9xKN6HIz3tK4=";
};
dependencies = [
librosa
resampy
scipy
torch
torchaudio
tqdm
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "torchcrepe" ];
meta = {
description = "Pytorch implementation of the CREPE pitch tracker";
homepage = "https://github.com/maxrmorrison/torchcrepe";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ derdennisop ];
};
}
+2
View File
@@ -15656,6 +15656,8 @@ self: super: with self; {
cudaPackages = pkgs.cudaPackages_12;
};
torchcrepe = callPackage ../development/python-modules/torchcrepe { };
torchdiffeq = callPackage ../development/python-modules/torchdiffeq { };
torchmetrics = callPackage ../development/python-modules/torchmetrics { };