Merge pull request #310562 from fabaff/pyannote-core-fix

python312Packages.pyannote-core: refactor

authored by Weijia Wang and committed by GitHub dce477bd 90e83595

+54 -31
+28 -14
pkgs/development/python-modules/pyannote-core/default.nix
··· 1 - { lib 2 - , buildPythonPackage 3 - , fetchFromGitHub 4 - , setuptools 5 - , wheel 6 - , sortedcontainers 7 - , numpy 8 - , scipy 9 - , typing-extensions 10 }: 11 12 buildPythonPackage rec { ··· 17 src = fetchFromGitHub { 18 owner = "pyannote"; 19 repo = "pyannote-core"; 20 - rev = version; 21 hash = "sha256-XQVEMy60LkfFr2TKXTeg6cGHRx5BUZ5qDgzIdKy/19Y="; 22 }; 23 24 - propagatedBuildInputs = [ 25 sortedcontainers 26 numpy 27 scipy 28 typing-extensions 29 ]; 30 31 - nativeBuildInputs = [ 32 - setuptools 33 - wheel 34 ]; 35 36 pythonImportsCheck = [ "pyannote.core" ]; ··· 38 meta = with lib; { 39 description = "Advanced data structures for handling temporal segments with attached labels"; 40 homepage = "https://github.com/pyannote/pyannote-core"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ ]; 43 };
··· 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 15 buildPythonPackage rec { ··· 20 src = fetchFromGitHub { 21 owner = "pyannote"; 22 repo = "pyannote-core"; 23 + rev = "refs/tags/${version}"; 24 hash = "sha256-XQVEMy60LkfFr2TKXTeg6cGHRx5BUZ5qDgzIdKy/19Y="; 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" ]; ··· 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 = with maintainers; [ ]; 57 };
+26 -17
pkgs/development/python-modules/pyannote-database/default.nix
··· 1 - { lib 2 - , buildPythonPackage 3 - , fetchFromGitHub 4 - , setuptools 5 - , wheel 6 - , pyannote-core 7 - , pyyaml 8 - , pandas 9 - , typer 10 }: 11 12 buildPythonPackage rec { 13 pname = "pyannote-database"; 14 version = "5.0.1"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "pyannote"; 19 repo = "pyannote-database"; 20 - rev = version; 21 hash = "sha256-A7Xr24O8OvVAlURrR+SDCh8Uv9Yz3AUJSFDyDShVVjA="; 22 }; 23 24 - propagatedBuildInputs = [ 25 pyannote-core 26 pyyaml 27 pandas 28 typer 29 ]; 30 31 - nativeBuildInputs = [ 32 - setuptools 33 - wheel 34 - ]; 35 - 36 pythonImportsCheck = [ "pyannote.database" ]; 37 38 meta = with lib; { 39 description = "Reproducible experimental protocols for multimedia (audio, video, text) database"; 40 - mainProgram = "pyannote-database"; 41 homepage = "https://github.com/pyannote/pyannote-database"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ matthewcroughan ]; 44 }; 45 }
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchFromGitHub, 5 + pandas, 6 + pyannote-core, 7 + pythonOlder, 8 + pyyaml, 9 + setuptools, 10 + typer, 11 + versioneer, 12 }: 13 14 buildPythonPackage 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 + rev = "refs/tags/${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 }