Merge pull request #310562 from fabaff/pyannote-core-fix
python312Packages.pyannote-core: refactor
This commit is contained in:
commit
dce477bd41
2 changed files with 54 additions and 31 deletions
|
@ -1,12 +1,15 @@
|
||||||
{ lib
|
{
|
||||||
, buildPythonPackage
|
lib,
|
||||||
, fetchFromGitHub
|
buildPythonPackage,
|
||||||
, setuptools
|
fetchFromGitHub,
|
||||||
, wheel
|
numpy,
|
||||||
, sortedcontainers
|
pandas,
|
||||||
, numpy
|
pytestCheckHook,
|
||||||
, scipy
|
scipy,
|
||||||
, typing-extensions
|
setuptools,
|
||||||
|
sortedcontainers,
|
||||||
|
typing-extensions,
|
||||||
|
versioneer,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -17,20 +20,30 @@ buildPythonPackage rec {
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "pyannote";
|
owner = "pyannote";
|
||||||
repo = "pyannote-core";
|
repo = "pyannote-core";
|
||||||
rev = version;
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-XQVEMy60LkfFr2TKXTeg6cGHRx5BUZ5qDgzIdKy/19Y=";
|
hash = "sha256-XQVEMy60LkfFr2TKXTeg6cGHRx5BUZ5qDgzIdKy/19Y=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
postPatch = ''
|
||||||
|
# Remove vendorized versioneer.py
|
||||||
|
rm versioneer.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
versioneer
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
sortedcontainers
|
sortedcontainers
|
||||||
numpy
|
numpy
|
||||||
scipy
|
scipy
|
||||||
typing-extensions
|
typing-extensions
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeCheckInputs = [
|
||||||
setuptools
|
pandas
|
||||||
wheel
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "pyannote.core" ];
|
pythonImportsCheck = [ "pyannote.core" ];
|
||||||
|
@ -38,6 +51,7 @@ buildPythonPackage rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Advanced data structures for handling temporal segments with attached labels";
|
description = "Advanced data structures for handling temporal segments with attached labels";
|
||||||
homepage = "https://github.com/pyannote/pyannote-core";
|
homepage = "https://github.com/pyannote/pyannote-core";
|
||||||
|
changelog = "https://github.com/pyannote/pyannote-core/releases/tag/${version}";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ ];
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
{ lib
|
{
|
||||||
, buildPythonPackage
|
lib,
|
||||||
, fetchFromGitHub
|
buildPythonPackage,
|
||||||
, setuptools
|
fetchFromGitHub,
|
||||||
, wheel
|
pandas,
|
||||||
, pyannote-core
|
pyannote-core,
|
||||||
, pyyaml
|
pythonOlder,
|
||||||
, pandas
|
pyyaml,
|
||||||
, typer
|
setuptools,
|
||||||
|
typer,
|
||||||
|
versioneer,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -14,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