mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 13:23:17 +00:00
Merge pull request #310562 from fabaff/pyannote-core-fix
python312Packages.pyannote-core: refactor
This commit is contained in:
commit
dce477bd41
@ -1,12 +1,15 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, setuptools
|
||||
, wheel
|
||||
, sortedcontainers
|
||||
, numpy
|
||||
, scipy
|
||||
, typing-extensions
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
numpy,
|
||||
pandas,
|
||||
pytestCheckHook,
|
||||
scipy,
|
||||
setuptools,
|
||||
sortedcontainers,
|
||||
typing-extensions,
|
||||
versioneer,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -17,20 +20,30 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "pyannote";
|
||||
repo = "pyannote-core";
|
||||
rev = version;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-XQVEMy60LkfFr2TKXTeg6cGHRx5BUZ5qDgzIdKy/19Y=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
postPatch = ''
|
||||
# Remove vendorized versioneer.py
|
||||
rm versioneer.py
|
||||
'';
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
versioneer
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
sortedcontainers
|
||||
numpy
|
||||
scipy
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
wheel
|
||||
nativeCheckInputs = [
|
||||
pandas
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pyannote.core" ];
|
||||
@ -38,6 +51,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "Advanced data structures for handling temporal segments with attached labels";
|
||||
homepage = "https://github.com/pyannote/pyannote-core";
|
||||
changelog = "https://github.com/pyannote/pyannote-core/releases/tag/${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
|
@ -1,12 +1,14 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, setuptools
|
||||
, wheel
|
||||
, pyannote-core
|
||||
, pyyaml
|
||||
, pandas
|
||||
, typer
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pandas,
|
||||
pyannote-core,
|
||||
pythonOlder,
|
||||
pyyaml,
|
||||
setuptools,
|
||||
typer,
|
||||
versioneer,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -14,32 +16,39 @@ buildPythonPackage rec {
|
||||
version = "5.0.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pyannote";
|
||||
repo = "pyannote-database";
|
||||
rev = version;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-A7Xr24O8OvVAlURrR+SDCh8Uv9Yz3AUJSFDyDShVVjA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
postPatch = ''
|
||||
# Remove vendorized versioneer.py
|
||||
rm versioneer.py
|
||||
'';
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
versioneer
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
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 ];
|
||||
mainProgram = "pyannote-database";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user