depot/third_party/nixpkgs/pkgs/development/python-modules/pyannote-pipeline/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

59 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
docopt,
fetchFromGitHub,
filelock,
optuna,
pyannote-core,
pyannote-database,
pyyaml,
scikit-learn,
setuptools,
tqdm,
versioneer,
}:
buildPythonPackage rec {
pname = "pyannote-pipeline";
version = "3.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "pyannote";
repo = "pyannote-pipeline";
rev = "refs/tags/${version}";
hash = "sha256-0wSgy6kbKi9Wa5dimOz34IV5/8fSwaHDMUpaBW7tm2Y=";
};
postPatch = ''
# Remove vendorized versioeer.py
rm versioneer.py
'';
build-system = [
setuptools
versioneer
];
dependencies = [
pyannote-core
pyannote-database
pyyaml
optuna
tqdm
docopt
filelock
scikit-learn
];
pythonImportsCheck = [ "pyannote.pipeline" ];
meta = with lib; {
description = "Tunable pipelines";
homepage = "https://github.com/pyannote/pyannote-pipeline";
license = licenses.mit;
maintainers = with maintainers; [ ];
mainProgram = "pyannote-pipeline";
};
}