1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 numpy, 6 pandas, 7 pytestCheckHook, 8 scipy, 9 setuptools, 10 sortedcontainers, 11 typing-extensions, 12 versioneer, 13}: 14 15buildPythonPackage rec { 16 pname = "pyannote-core"; 17 version = "5.0.1"; 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "pyannote"; 22 repo = "pyannote-core"; 23 tag = version; 24 hash = "sha256-28LVgI5bDFv71co/JsSrPrAcdugXiMRe6T1Jp0CO0XY="; 25 }; 26 27 postPatch = '' 28 # Remove vendorized versioneer.py 29 rm versioneer.py 30 ''; 31 32 build-system = [ 33 setuptools 34 versioneer 35 ]; 36 37 dependencies = [ 38 sortedcontainers 39 numpy 40 scipy 41 typing-extensions 42 ]; 43 44 nativeCheckInputs = [ 45 pandas 46 pytestCheckHook 47 ]; 48 49 pythonImportsCheck = [ "pyannote.core" ]; 50 51 meta = with lib; { 52 description = "Advanced data structures for handling temporal segments with attached labels"; 53 homepage = "https://github.com/pyannote/pyannote-core"; 54 changelog = "https://github.com/pyannote/pyannote-core/releases/tag/${version}"; 55 license = licenses.mit; 56 maintainers = [ ]; 57 }; 58}