depot/third_party/nixpkgs/pkgs/development/python-modules/python-louvain/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

50 lines
995 B
Nix

{
lib,
fetchPypi,
buildPythonPackage,
fetchpatch,
networkx,
pandas,
scipy,
numpy,
}:
buildPythonPackage rec {
pname = "python-louvain";
version = "0.16";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-t7ot9QAv0o0+54mklTK6rRH+ZI5PIRfPB5jnUgodpWs=";
};
patches = [
# Fix test_karate
(fetchpatch {
name = "fix-karate-test-networkx-2.7.patch";
url = "https://github.com/taynaud/python-louvain/pull/95/commits/c95d767e72f580cb15319fe08d72d87c9976640b.patch";
hash = "sha256-9oJ9YvKl2sI8oGhfyauNS+HT4kXsDt0L8S2owluWdj0=";
})
];
propagatedBuildInputs = [
networkx
numpy
];
pythonImportsCheck = [ "community" ];
nativeCheckInputs = [
pandas
scipy
];
meta = with lib; {
homepage = "https://github.com/taynaud/python-louvain";
description = "Louvain Community Detection";
mainProgram = "community";
license = licenses.bsd3;
maintainers = [ ];
};
}