nixpkgs/pkgs/development/python-modules/pyannote-database/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

46 lines
889 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, wheel
, pyannote-core
, pyyaml
, pandas
, typer
}:
buildPythonPackage rec {
pname = "pyannote-database";
version = "5.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "pyannote";
repo = "pyannote-database";
rev = version;
hash = "sha256-A7Xr24O8OvVAlURrR+SDCh8Uv9Yz3AUJSFDyDShVVjA=";
};
propagatedBuildInputs = [
pyannote-core
pyyaml
pandas
typer
];
nativeBuildInputs = [
setuptools
wheel
];
pythonImportsCheck = [ "pyannote.database" ];
meta = with lib; {
description = "Reproducible experimental protocols for multimedia (audio, video, text) database";
mainProgram = "pyannote-database";
homepage = "https://github.com/pyannote/pyannote-database";
license = licenses.mit;
maintainers = with maintainers; [ matthewcroughan ];
};
}