1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pandas, 6 pyannote-core, 7 pythonOlder, 8 pyyaml, 9 setuptools, 10 typer, 11 versioneer, 12}: 13 14buildPythonPackage rec { 15 pname = "pyannote-database"; 16 version = "5.0.1"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.9"; 20 21 src = fetchFromGitHub { 22 owner = "pyannote"; 23 repo = "pyannote-database"; 24 tag = version; 25 hash = "sha256-A7Xr24O8OvVAlURrR+SDCh8Uv9Yz3AUJSFDyDShVVjA="; 26 }; 27 28 postPatch = '' 29 # Remove vendorized versioneer.py 30 rm versioneer.py 31 ''; 32 33 build-system = [ 34 setuptools 35 versioneer 36 ]; 37 38 dependencies = [ 39 pyannote-core 40 pyyaml 41 pandas 42 typer 43 ]; 44 45 pythonImportsCheck = [ "pyannote.database" ]; 46 47 meta = with lib; { 48 description = "Reproducible experimental protocols for multimedia (audio, video, text) database"; 49 homepage = "https://github.com/pyannote/pyannote-database"; 50 license = licenses.mit; 51 maintainers = with maintainers; [ matthewcroughan ]; 52 mainProgram = "pyannote-database"; 53 }; 54}