depot/third_party/nixpkgs/pkgs/development/python-modules/leidenalg/default.nix
Default email 60f07311b9 Project import generated by Copybara.
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
2024-02-06 17:22:34 -08:00

54 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 ];
};
}