2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, networkx
|
|
|
|
, numpy }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-louvain";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "0.16";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-t7ot9QAv0o0+54mklTK6rRH+ZI5PIRfPB5jnUgodpWs=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ networkx numpy ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "community" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/taynaud/python-louvain";
|
|
|
|
description = "Louvain Community Detection";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ erictapen ];
|
|
|
|
};
|
|
|
|
}
|