Commit 4eb356a2 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.pyannote-database: refactor

parent 184839dd
Loading
Loading
Loading
Loading
+19 −11
Original line number Diff line number Diff line
@@ -2,12 +2,13 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  wheel,
  pandas,
  pyannote-core,
  pythonOlder,
  pyyaml,
  pandas,
  setuptools,
  typer,
  versioneer,
}:

buildPythonPackage rec {
@@ -15,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";
  };
}