depot/third_party/nixpkgs/pkgs/development/python-modules/pyannote-pipeline/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

59 lines
1,016 B
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 = [ ];
mainProgram = "pyannote-pipeline";
};
}