depot/third_party/nixpkgs/pkgs/development/python-modules/torchcrepe/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

51 lines
1 KiB
Nix

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