blob: f1b55e0ae817ed87bc650e63ae64d03565ec983b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{ lib
, buildPythonPackage
, ddt
, fetchPypi
, igraph
, igraph-c
, pythonOlder
, setuptools-scm
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "leidenalg";
version = "0.9.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-flz+O2+A8yuQ9V81xo1KmQsEibEoLPP6usjNpJiJdfM=";
};
postPatch = ''
substituteInPlace ./setup.py \
--replace "[\"/usr/include/igraph\", \"/usr/local/include/igraph\"]" \
"[\"${igraph-c.dev}/include/igraph\"]"
rm -r vendor
'';
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
igraph
igraph-c
];
checkInputs = [
ddt
unittestCheckHook
];
pythonImportsCheck = [ "leidenalg" ];
meta = with lib; {
description = "Implementation of the Leiden algorithm for various quality functions to be used with igraph in Python";
homepage = "https://leidenalg.readthedocs.io";
license = licenses.gpl3Only;
maintainers = with maintainers; [ jboy ];
};
}
|