mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
Merge pull request #313868 from NixOS/backport-313688-to-release-24.05
[Backport release-24.05] python311Packages.pyannote-metrics: refactor
This commit is contained in:
commit
c9dc290324
@ -1,19 +1,20 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
docopt,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
wheel,
|
||||
matplotlib,
|
||||
numpy,
|
||||
pandas,
|
||||
pyannote-core,
|
||||
pyannote-database,
|
||||
pandas,
|
||||
scipy,
|
||||
pythonOlder,
|
||||
scikit-learn,
|
||||
docopt,
|
||||
tabulate,
|
||||
matplotlib,
|
||||
scipy,
|
||||
setuptools,
|
||||
sympy,
|
||||
numpy,
|
||||
tabulate,
|
||||
versioneer,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -21,14 +22,26 @@ buildPythonPackage rec {
|
||||
version = "3.2.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pyannote";
|
||||
repo = "pyannote-metrics";
|
||||
rev = version;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-V4qyaCaFsoikfFILm2sccf6m7lqJSDTdLxS1sr/LXAY=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
postPatch = ''
|
||||
# Remove vendorized versioneer.py
|
||||
rm versioneer.py
|
||||
'';
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
versioneer
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
pyannote-core
|
||||
pyannote-database
|
||||
pandas
|
||||
@ -41,18 +54,14 @@ buildPythonPackage rec {
|
||||
numpy
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pyannote.metrics" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A toolkit for reproducible evaluation, diagnostic, and error analysis of speaker diarization systems";
|
||||
mainProgram = "pyannote-metrics";
|
||||
homepage = "https://github.com/pyannote/pyannote-metrics";
|
||||
changelog = "http://pyannote.github.io/pyannote-metrics/changelog.html";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
mainProgram = "pyannote-metrics";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user