depot/third_party/nixpkgs/pkgs/development/python-modules/leidenalg/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

51 lines
1 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";
rev = "refs/tags/${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 ];
};
}