2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
ddt,
|
|
|
|
fetchFromGitHub,
|
|
|
|
igraph,
|
|
|
|
igraph-c,
|
|
|
|
libleidenalg,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools-scm,
|
|
|
|
unittestCheckHook,
|
2023-02-09 11:40:11 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "leidenalg";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.10.2";
|
|
|
|
pyproject = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vtraag";
|
|
|
|
repo = "leidenalg";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-oaTV+BIB/YQBWKrVXuiIEMH/1MxPxeHhjUzbmxt6hlw=";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2023-02-09 11:40:11 +00:00
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
buildInputs = [
|
|
|
|
igraph-c
|
|
|
|
libleidenalg
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ igraph ];
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
ddt
|
|
|
|
unittestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "leidenalg" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-02-07 01:22:34 +00:00
|
|
|
changelog = "https://github.com/vtraag/leidenalg/blob/${version}/CHANGELOG";
|
2023-02-09 11:40:11 +00:00
|
|
|
description = "Implementation of the Leiden algorithm for various quality functions to be used with igraph in Python";
|
2024-02-07 01:22:34 +00:00
|
|
|
homepage = "https://github.com/vtraag/leidenalg";
|
2023-02-09 11:40:11 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ jboy ];
|
|
|
|
};
|
|
|
|
}
|