python312Packages.pyannote-core: refactor
- switch to pytestCheckHook - remove vendorized versioneer.py
This commit is contained in:
parent
adc41e1e3e
commit
e1a2893291
1 changed files with 21 additions and 8 deletions
|
@ -1,12 +1,14 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, setuptools
|
|
||||||
, wheel
|
|
||||||
, sortedcontainers
|
|
||||||
, numpy
|
, numpy
|
||||||
|
, pandas
|
||||||
|
, pytestCheckHook
|
||||||
, scipy
|
, scipy
|
||||||
|
, setuptools
|
||||||
|
, sortedcontainers
|
||||||
, typing-extensions
|
, typing-extensions
|
||||||
|
, versioneer
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -17,20 +19,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 +50,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; [ ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue