python312Packages.pyannote-database: refactor
This commit is contained in:
parent
184839dd8e
commit
4eb356a2a9
1 changed files with 20 additions and 12 deletions
|
@ -2,12 +2,13 @@
|
||||||
lib,
|
lib,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
setuptools,
|
|
||||||
wheel,
|
|
||||||
pyannote-core,
|
|
||||||
pyyaml,
|
|
||||||
pandas,
|
pandas,
|
||||||
|
pyannote-core,
|
||||||
|
pythonOlder,
|
||||||
|
pyyaml,
|
||||||
|
setuptools,
|
||||||
typer,
|
typer,
|
||||||
|
versioneer,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -15,32 +16,39 @@ buildPythonPackage rec {
|
||||||
version = "5.0.1";
|
version = "5.0.1";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.9";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "pyannote";
|
owner = "pyannote";
|
||||||
repo = "pyannote-database";
|
repo = "pyannote-database";
|
||||||
rev = version;
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-A7Xr24O8OvVAlURrR+SDCh8Uv9Yz3AUJSFDyDShVVjA=";
|
hash = "sha256-A7Xr24O8OvVAlURrR+SDCh8Uv9Yz3AUJSFDyDShVVjA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
postPatch = ''
|
||||||
|
# Remove vendorized versioneer.py
|
||||||
|
rm versioneer.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
versioneer
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
pyannote-core
|
pyannote-core
|
||||||
pyyaml
|
pyyaml
|
||||||
pandas
|
pandas
|
||||||
typer
|
typer
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
setuptools
|
|
||||||
wheel
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "pyannote.database" ];
|
pythonImportsCheck = [ "pyannote.database" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Reproducible experimental protocols for multimedia (audio, video, text) database";
|
description = "Reproducible experimental protocols for multimedia (audio, video, text) database";
|
||||||
mainProgram = "pyannote-database";
|
|
||||||
homepage = "https://github.com/pyannote/pyannote-database";
|
homepage = "https://github.com/pyannote/pyannote-database";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ matthewcroughan ];
|
maintainers = with maintainers; [ matthewcroughan ];
|
||||||
|
mainProgram = "pyannote-database";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue