Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
ddt,
|
|
fetchFromGitHub,
|
|
igraph,
|
|
igraph-c,
|
|
libleidenalg,
|
|
pythonOlder,
|
|
setuptools-scm,
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "leidenalg";
|
|
version = "0.10.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vtraag";
|
|
repo = "leidenalg";
|
|
tag = version;
|
|
hash = "sha256-oaTV+BIB/YQBWKrVXuiIEMH/1MxPxeHhjUzbmxt6hlw=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
buildInputs = [
|
|
igraph-c
|
|
libleidenalg
|
|
];
|
|
|
|
propagatedBuildInputs = [ igraph ];
|
|
|
|
checkInputs = [
|
|
ddt
|
|
unittestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "leidenalg" ];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/vtraag/leidenalg/blob/${version}/CHANGELOG";
|
|
description = "Implementation of the Leiden algorithm for various quality functions to be used with igraph in Python";
|
|
homepage = "https://github.com/vtraag/leidenalg";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ jboy ];
|
|
};
|
|
}
|